John 14:16-17 "And I will pray the Father, and He will give you another Helper, that He may abide with you forever- the Spirit of truth, whom the world cannot receive, because it neither sees Him nor knows Him; but you know Him, for He dwells with you and will be in you."
The Spirit of truth is holy and He cannot dwell in any filthy and sinful temple (the world or non-believers' bodies)
Gen 3:8 And they heard the sound of the Lord God walking in the garden in the cool of the day, and Adam and his wife hid themselves from the presence of the Lord God among the trees of the garden.
God created Adam and Eve so that they could walk alongside Him as friends in the cool of the day. Because they sinned by disobeying God, God chased them out from the Garden of Eden.
Gen 5:24 And Enoch walked with God; and he was not, for God took him.
God continued to walk with Enoch as with Adam and Eve, and Enoch did not see death for he was physically taken up to heaven.
Gen 18:16-17 Then the men rose from there and looked toward Sodom, and Abraham went with them to send them on the way. And the Lord said, "Shall I hide from Abraham what I am doing,"
God continued to speak to the Patriarchs and in this case with Abraham in the appearance of a man.
Gen 6:5-6 Then the Lord saw that the wickedness of man was great in the earth, and that every intent of the thoughts of his heart was only evil continually. And the Lord was sorry that He had made man on the earth, and He was grieved in His heart.
Man was a great disappointment to God for they were filled with great wickedness and their every intent was continuously evil. In those days God Himself came down to earth to talk and walk with man and when He was not around they rebelled against Him. Thus, 2000 years after creation, almost all mankind were idol worshippers. (Man was so sinful that the Spirit of God would not dwell within man).
'The Law and Commandments'
Because of His great love for man, God was prepared to suffer the nauseating and revolting sins dwelling in the bodies of men, for the sake of delivering man from their bondages. So He called Abraham out from Ur, and because of Abraham's obedience and faith in God, He gave laws to his descendants through Israel (Jacob) to observe, so that they were sanctified by the sacrificial lamb.
Then, God sent His Spirit to dwell with all His anointed kings, Priesthood and prophets to help them to overcome the evil and wickedness in man.
[ Warning - God cannot dwell in any defile temple i.e sinful human physical bodies ]
2 Tim 3:1-7 But know this, that in the last days perilous times will come: For men will be lovers of themselves, lovers of money, boasters, proud, blasphemers, disobedient to parents, thankless, unholy, unloving, unforgiving, slanderers, without self-control, brutal, despisers of good, traitors, headstrong, haughty, lovers of pleasure rather than lovers of God, having a form of godliness but denying its power. And from such people turn away! For of this sort are those who creep into households and make captives of gullible women loaded down with sins, led away by various lusts, always learning and never able to come to the knowledge of the truth.
Beware brethren, that in the last days, not only unbelievers but Christians too will be filled with evil and wickedness. This will grieve the Holy Spirit dwelling within them.