Joshua24:24

The pledge belongs to the gathering Joshua called at Shechem after the Lord had given Israel rest from its enemies, just before Joshua's death, when Israel reaffirmed its loyalty to the Lord and renewed its covenant with God. Their promise to serve the Lord as their God and obey His voice followed Joshua's account of God's deliverance and care for them. Before the pledge he gathered the Hebrew host and, following Moses, rehearsed their wilderness travels and God's merciful dealings with them. That review of God's care was to awaken gratitude for His providence and humility over murmuring and failure to follow His revealed will. It included deliverance from the king of Moab when God turned Balaam's curse into blessing.

He then charged them to choose that day whom they would serve while declaring his own house would serve the Lord. He called them to witness against themselves, to put away strange gods, and to incline the heart to the God of Israel. He warned them to weigh their promise carefully. He warned against idolatry and ties with idolaters, including intermarriage, because such associations corrupt and lead to sin and ruin. Forsaking the Lord for strange gods would bring hurt, destruction, and desolation, for as God keeps His promises He is also faithful to carry out His threatenings.

In answer the people reaffirmed loyalty and renewed their covenant with God, pledging to serve the Lord their God and obey His voice. They first refused to forsake the Lord for other gods because He brought them and their fathers out of Egyptian bondage, did great signs before them, and preserved them on the way and among the peoples. Their words became part of the covenant made with the people at Shechem. Joshua wrote the words of their covenant in the book containing the laws and statutes given to Moses.

That repenting generation kept the pledge as long as Joshua and the elders who had seen God's great works for Israel lived. But after Joshua and the faithful sentinels who crossed Jordan died one by one, a new generation arose and the nation departed from God into corrupted worship. The passage records a revival among God's ancient people. The pledge and its warning are to be applied personally, for departure from Him brings desolation. All who name the name of Christ should read it carefully and with an understanding heart to search their own hearts whether they are in the faith.