2 Chronicles 7:14
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.
After Solomon had finished the Temple and his own palace, God appeared to him with a promise and warning. If the people of God experienced drought and pestilence because of disobedience, they were to humble themselves, seek Him, and turn from their wicked ways. Then He would forgive their sin and restore them.