Last week we looked at what happened in 2nd Chronicles up to the point where Solomon finished praying and FIRE came down from heaven and the glory of
the LORD filled the temple! Then the Lord appeared to Solomon
that night. Here's what happened next:
11 When Solomon had finished the temple of the LORD and the royal palace, and had succeeded in carrying out all he had in mind to do in the temple of the LORD and in his own palace, 12 the LORD appeared to him at night and said: 13 "When I shut up the heavens so that there is no rain, or command locusts to devour the land or send a plague among my people, 14 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 will I hear from heaven and will forgive their sin and will heal their land. 15 Now my eyes will be open and my ears attentive to the prayers offered in this place. 16 I have chosen and consecrated this temple so that my Name may be there forever. My eyes and my heart will always be there. 17 "As for you, if you walk before me as David your father did, and do all I command, and observe my decrees and laws, 18 I will establish your royal throne, as I covenanted with David your father when I said, 'You shall never fail to have a man to rule over Israel.' 19 "But if you turn away and forsake the decrees and commands I have given you and go off to serve other gods and worship them, 20 then I will uproot Israel from my land, which I have given them, and will reject this temple I have consecrated for my Name. I will make it a byword and an object of ridicule among all peoples. 21 And though this temple is now so imposing, all who pass by will be appalled and say, 'Why has the LORD done such a thing to this land and to this temple?' 22 People will answer, 'Because they have forsaken the LORD, the God of their fathers, who brought them out of Egypt, and have embraced other gods, worshiping and serving them—that is why he brought all this disaster on them.' "
Look at the “if, then” statements of verses 14, 17 and 19, which I underlined. God is looking for 4 things in verse 14: humility, prayer, seeking Him, and repentance.