II Chronicles 6:24 “If your people Israel are defeated before the enemy because they have sinned against you, and they turn again and acknowledge your name and pray and plead with you in this house, 25 then hear from heaven and forgive the sin of your people Israel and bring them again to the land that you gave to them and to their fathers. 26 “When heaven is shut up and there is no rain because they have sinned against you, if they pray toward this place and acknowledge your name and turn from their sin, when you afflict them, 27 then hear in heaven and forgive the sin of your servants, your people Israel, when you teach them the good way in which they should walk, and grant rain upon your land, which you have given to your people as an inheritance.
After David had passed and Solomon took the throne in Jerusalem, he made his first order of business to do what his father had requested: build and furnish the temple. When he did so, he offered a lengthy prayer to God, including the verses above. Notice the first situation involves "if", while the second begins "when." No one wants to lose soldiers in battle, but Solomon was wise enough to know that the people would sin, forfeiting the blessing of rain in the Promised Land." In either case (and more listed in this chapter) Solomon's request-in-advance was for God to "hear and forgive" when His people called out in repentance. Solomon knew He would. We know it also. Will we do it?