Then the Lord appeared to Solomon by night, and said to him: “I have heard your prayer, and have chosen this place for Myself as a house of sacrifice. When I shut up heaven and there is no rain, or command the locusts to devour the land, or send pestilence among My people, if My people who are called by My name will humble themselves, and pray and seek My face, and turn from their wicked ways, then I will hear from heaven, and will forgive their sin and heal their land. (2 Chronicles 7:12-14)
It had been months, maybe years, that had passed since Solomon's prayer of dedication for the temple (2 Chronicles 6). Several other building projects had been completed after the temple (2 Chronicles 7:11; 8:1). Then after all this time, God told Solomon that He had heard his prayer. In the next several verses (2 Chronicles 7: 13–15), the Lord reviews and answers the petitions of Solomon (2 Chronicles 6:14–42). Solomon’s prayers had been heard and would be answered, but there were conditions (2 Chronicles 7:14).