When he giveth you rest. — Rashi observes, “This was not until the days of David.” He cite 2 Samuel 7:1 : “It came to pass when the king sat in his house, and the Lord had given him rest round about from all his enemies.”
Related Commentaries of Deuteronomy 12:10
Deuteronomy 12:10
10 But when ye go over Jordan, and dwell in the land which the LORD your God giveth you to inherit, and when he giveth you rest from all your enemies round about, so that ye dwell in safety;