2 Chronicles / Question
Solomon said that God would not dwell with man on the earth in a way the building could contain. He stated that the heaven and heaven of heavens cannot contain God, much less the house Solomon built (2 Chronicles 6:18).
In 2 Chronicles 6:18–21, Solomon wonders how the God who cannot be contained by the highest heavens could truly live on earth in a building he made. Yet he asks God to pay attention to his prayer and to Israel’s prayers connected with this temple. These verses come from Solomon’s temple dedication prayer, following the completion and public presentation of the temple. The prayer moves from amazement at God’s vastness to practical requests about how worshipers will approach God in the future.
These verses hold two ideas together without treating them as a contradiction. First, God is so great that even “heaven and the heaven of heavens” cannot contain him (explicit claim). Second, Solomon still expects God to be genuinely attentive to prayers connected to this temple (explicit claim).
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with 2 Chronicles 6:18, then read the surrounding section so the answer stays connected to the passage's flow.
18But will God in very deed dwell with men on the earth? behold, heaven and the heaven of heavens can`t contain you; how much less this house which I have built!