There are many passages in the Word that say this, the following being a few of them:
Those who walk in righteousness and say what is upright, who loathe oppression for the sake of profit, who shake bribes from their hands in order not to accept them, who block their ears so as not to hear bloodshed, who close their eyes so as not to see evil–they will dwell on high. (Isaiah 33:15-16)
Jehovah, who will dwell in your tabernacle? Who will live on your holy mountain? Those who walk uprightly and do what is fair, who do not disparage others with their tongues, and who do no evil to their companions. (Psalms 15:1-3, and following)
My eyes are toward the faithful of the earth so that they may sit down with me. Anyone who walks the path of integrity will serve me. No one who practices deceit will sit in the midst of my house; no one who speaks lie will stand in my presence. At dawn I will cut off all the ungodly of the earth, to cut off from the city all those who work iniquity. (Psalms 101:6-8)
In the following words, the Lord tells us that we are not truly honest, fair, faithful, or upright until we are inwardly honest, fair, faithful, and upright.
Unless your righteousness exceeds that of the scribes and Pharisees, you will not enter the kingdom of the heavens. (Matthew 5:20)
Righteousness that exceeds that of the scribes and Pharisees means the more inward righteousness that is ours when we are in the Lord. As for our being “in the Lord,” he also teaches this in John:
The glory that you gave me I have given them, so that they may be one just as we are one–I in them and you in me–so that they may be made perfect in one, and so that the love with which you loved me may be in them, and I may be in them. (John 17:22-23, 26)
This show that people become complete when the Lord is in them. These are the people who are called “pure in heart,” the ones who will see God,” and the ones who are “perfect, like their Father in the heavens” (Matthew 5:8, 48).
from Life/Faith, Section 84