During the time of Solomon, he built God a temple and after dedicating the temple, the glory of the Lord filled the temple. 2 Chronicles 7:1-2. God started dwelling in the temple. When the Israelites prayed to God, they came to Jerusalem where the temple was, but if they were far from Jerusalem, they must pray facing Jerusalem. When they sinned against God and were afflicted because of their disobedience, they normally come with ashes on their heads and their clothes turn before the temple for God to forgive them.
That temple became God’s headquarters, His home address, His office where He reaches out to sons of men. The Bible says that the most high does not live in a house made with hands/men Acts 7:48. That was why when Christ died, the curtain of the temple turn into twain from top to bottom and the Holy Ghost now dwells in anybody that confesses Jesus as the Lord of their lives. In Old Testament Temple, we have the outer court, inner court and the Holy of Holies where God dwells. Likewise our body typified the outer court, where all activities of life takes place. Our soul represents the inner court while our spirit represents the Holy of Holies where God dwells in.
So in New Testament, our body is called the temple of God. 1 Corinthians 6:19, but He dwells in our spirit. We have the inner man and the outward man, 2 Corinthians 4:16. The inward man is made up of the Spirit and the soul. God dwell in our spirit, the hidden man of the heart. Our body is our house, it houses the human spirit. And since God dwells in our spirits, it means that our body is the house of God, Hebrews 3:6. It means that since God dwells in us, everybody that needs God ought to come to His house as they did in the Old Testament. Ephesians 2:21-22, 1 Corinthians 6:19.