Proverbs 16:2 All the ways of a man are clean in his own eyes; but the LORD weigheth the spirits.
I am okay, but I don't know about that other person? In our own eyes all our ways are clean? but the LORD weighs the spirits. He places them on the scales of his righteousness. Other Bible versions say that he knows our motives, our thinking. We do not know our heart as well as does the LORD.
Jer 17:9 The heart is deceitful above all things, and desperately wicked: who can know it?
We are told to examine our heart to see if there be any unclean thing.
2Co 13:5 Examine yourselves, whether ye be in the faith; prove your own selves. Know ye not your own selves, how that Jesus Christ is in you, except ye be reprobates?
Jesus is our righteousness, by faith in him. We are to examine our hearts before we partake of the ordinance of communion.
1Co 11:28 But let a man examine himself, and so let him eat of that bread, and drink of that cup.
1Co 11:29 For he that eateth and drinketh unworthily, eateth and drinketh damnation to himself, not discerning the Lord's body.
1Co 11:30 For this cause many are weak and sickly among you, and many sleep.
1Co 11:31 For if we would judge ourselves, we should not be judged.
Better that we examine our self and ask the LORD to show us any unclean ways.
Psa 26:2 Examine me, O LORD, and prove me; try my reins and my heart.
We must confess that we have sins and that we seek God for cleansing and restoration. David went to God in prayer after he had sinned with Bathsheba and had her husband killed in battle. God is greater than our wicked ways.
Psa 51:10 Create in me a clean heart, O God; and renew a right spirit within me.
Ultimately if we have the Lord's Spirit convicting us, we must come to Jesus confessing our sins and seeking cleansing.
1Jn 1:9 If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness.
1Jn 1:10 If we say that we have not sinned, we make him a liar, and his word is not in us.
What Spirit is in you? There is a test given in scriptures whereby we may know the spirit.
1Co 12:3 Wherefore I give you to understand, that no man speaking by the Spirit of God calleth Jesus accursed: and that no man can say that Jesus is the Lord, but by the Holy Ghost.