1 Kings 8:57

The LORD our God be with us, as he was with our fathers: let him not leave us, nor forsake us:

The prayer belongs to the dedication of the temple after it was finished and dedicated with great splendor, spoken as blessing for the people to all Israel with many nations present while Solomon remained pure. In that setting the conditions God required of His people to receive His blessings in worship were set before them in 1 Kings 8:54-61. The petition asks that the Lord be with Israel as He was with the fathers and not leave nor forsake them, as a plea for His continued presence and care. It is a prayer that God would remain with His people as He had been with their ancestors and not abandon them.

The presence requested is meant to incline their hearts to walk in all His ways and to keep His commandments, statutes, and judgments commanded to the fathers. It exalts God's law before the people and seeks hearts wholly, perfectly, and undividedly given to the Lord. God's abiding presence and blessing were conditional on dependence on God, sincere worship, trust, steadfast obedience, and uprightness and perfection of heart in walking in His statutes. As long as Solomon obeyed, God was with him as entreated, even as He had been with David who walked before Him in truth and righteousness and uprightness of heart.

Joined to the exhortation to let the heart be perfect with God in walking in His statutes and keeping His commandments, the prayer shows that God did not sanction the sins of David and Solomon but showed mercy and dealt with them exactly according to their walking before Him in truth, righteousness, and uprightness of heart, just according to their faithfulness. By praying this way, Solomon seeks to tear away heathen superstitions that Jehovah is confined to a temple built for Him like heathen gods. The God of Israel is not shut in by the house but meets His people by His Spirit when they assemble in that house dedicated to His worship.

The promise not to leave or forsake Israel was assurance accompanying their settlement in Canaan, yet divine presence did not remove their duty to wage an active campaign to possess the land. Their failure to take the land allowed idolatrous Canaanites to grow stronger, and God's name and glory became less evident among them. The verse calls Israel to carry out the Lord's Word faithfully and honor Him in family and public life, with households shaped by instruction in God's Word, gratitude for His gifts, and worship that gives Him glory, and sincere worshipers who trusted Him received His blessing. Its desire for continued faithfulness stands in contrast to Solomon's later apostasy, when he gave himself to false gods and became the seducer of the very people he had prayed for.