2 Chronicles 2:6 But who is able to build a temple for him, since the heavens, even the highest heavens, cannot contain him? Who then am I to build a temple for him, except as a place to burn sacrifices before him?
Solomon realised he could never build a house to contain God. There is no way we can fit God into a house, no matter how big and grand it is.
Yet they continued to build the temple, not to put God in it, but to make the grandest place they could to give up their sacrifices to God.
It is all about giving glory to God and not trying to put Him in a pigeon hole so we can understand Him or control Him in some way!