(His ancestors had been led by the cloud through the wilderness on their journey from slavery to promised land.)
Solomon prayed before the altar in the presence of all those assembled in the temple. He praised God for the covenant that had been made with David that extended to David's descendants.
The glory of God is visible in the temple, but God is not imprisoned there. Solomon could pray to God in the temple and expect God to hear him, but God is not confined to the temple.
In the last few years here in the US, we have become accustomed to reading about immigrants--and arguing about them. Many Americans would prefer that we not accept any new arrivals although of course we know that almost all of us are descendants of immigrants.
So, it's interesting to me to read in the OT yet one more passage about immigrants. In his dedicatory prayer in the newly built temple, Solomon includes the foreigners who have heard about God and showed up at the temple.
Now, Solomon does give a practical reason for welcoming the outsiders. The more people that know about God, the most people there will be to teach others. But, let me also point out that Solomon assumes that God hears the prayers of these outsiders and will respond favorably to them.
What would it mean for us in the US--or, for any of the rest of you, for that matter--to recognize that God listens to the prayers of people that aren't just like us?