Joshua declared that the Lord God would drive out the inhabitants of the Land of Canaan from before the children of Israel, which should have motivated Israel to obey the Lord,
“Therefore be very courageous to keep and to do all that is written in the Book of the Law of Moses, lest you turn aside from it to the right hand or to the left, and lest you go among these nations, these who remain among you. You shall not make mention of the name of their gods, nor cause anyone to swear by them; you shall not serve them nor bow down to them, but you shall hold fast to the LORD your God, as you have done to this day” (Joshua 23:6-8).
Israel could show their gratefulness to the Lord by obeying Him, remaining loyal to Him, and not turning to other gods.
Does not the Lord expect the same from us? What has the Lord done for you that should motivate you to obey Him?