2 Samuel 13:4
He asked Amnon, "Son of the king, why do you look so sad day after day? Tell me what's wrong!" Amnon told him, "I love Tamar, the sister of my half-brother Absalom."
Amnon is asked what's wrong, revealing his desire for Tamar.
Proverbs 24:12
If you say, "We don't know anything about this," God, who knows what's in your mind, will notice. He is watching you, and he will know. He will reward each person for what he has done.
God knows what's in a person's mind and repays deeds.