2 Chronicles 7:13-14
If I shut up heaven that there be no rain, or if I command the locusts to devour the land, or if I send pestilence among my people; If my people, which are called by my name, shall humble themselves, and pray, and seek my face, and turn from their wicked ways; then will I hear from heaven, and will forgive their sin, and will heal their land.
Deuteronomy 30:1-3
And it shall come to pass, when all these things are come upon thee, the blessing and the curse, which I have set before thee, and thou shalt call them to mind among all the nations, whither the LORD thy God hath driven thee, And shalt return unto the LORD thy God, and shalt obey his voice according to all that I command thee this day, thou and thy children, with all thine heart, and with all thy soul; That then the LORD thy God will turn thy captivity, and have compassion upon thee, and will return and gather thee from all the nations, whither the LORD thy God hath scattered thee:
The divine response to Solomon's prayer establishes a covenant restoration mechanism that mirrors the Deuteronomy 30 return-and-restoration statute. Deuteronomy 30 established that even after the curse has come upon Israel — including drought, locusts, and pestilence, all enumerated in Deuteronomy 28 — a return to the LORD will produce forgiveness and healing. The 2 Chronicles 7 formulation is a personal covenant declaration to Solomon applying the Deuteronomic restoration framework to the specific context of the temple: when Israel prays toward this house in covenant humility and repentance, the Deuteronomy 30 restoration mechanism activates.