In his prayer Solomon explained the significance of God's coming to indwell His temple. God had come to empower, to have fellowship, and to judge if necessary. God was present among His people, and He would hear their prayers when they obediently called out to Him.
Solomon acknowledged that God had fulfilled some of the promises of the Davidic Covenant already (v. 15), but he also saw that there were others yet unfulfilled. He called on God to grant them (v. 16). Solomon's view of God was that He was both transcendent and immanent (v. 18). Even though God is everywhere at once He can and does localize His presence as well (e.g., the incarnate Christ, cf. John 2:20-21). At this period in history He localized His presence in the temple. Nevertheless in heaven He would hear the prayers of His people wherever they might be when they called out to Him (vv. 38-39).
Solomon specified seven concrete situations in which he asked the Lord to intervene in answer to prayer. These were when the people swore an oath in the temple (vv. 22-23), suffered defeat and exile from an enemy (vv. 24-25), and lacked rain (vv. 26-27). They were also when they experienced disease or other disaster (vv. 28-31), and when foreigners would come to pray toward the temple (vv. 32-33). The final two situations were when Israel was at war (vv. 34-35), and when Israel was in captivity due to sin (vv. 36-39).
This prayer is similar in its structure to Abraham's prayer recorded in Genesis 18:22-33. It also recalls Elijah's prayer on Mount Carmel in that God responded to both of these prayers with fire from heaven (7:1; cf. 1 Kings 18:38-39).