(Proverbs 20:27 KJV) The spirit of man is the candle of the LORD, searching all the inward parts of the belly.
We can play all kinds of mind games with God, but our “spirit” (5397) is an open book to Him. This is not the most common root word. Hebrew has a word for soul and a word for spirit that are both much more common. I think this would be close to the conscience. We know when we are wrong unless we have trained our conscience to ignore it.
God is very much aware of our inner motivation. For Him the question often is not what we have done, but why we have done it. Thus we have places where offerings and prayers are called abominations because they are given as attempts to manipulate God or fool people.
So? What does your inner spirit say about your motivation. Be honest. No one is listening but you and God and He already knows the answer. Pray for a change of heart, or spirit, if that is what is needed. Repentance is always in style in the kingdom.