Moses
Genesis 20:6ESV·traditional attribution

Then God said to him in the dream, “Yes, I know that you have done this in the integrity of your heart, and it was I who kept you from sinning against me. Therefore I did not let you touch her.

John Calvin Reformed @genevareformer

6. Yea, I know that thou didst this in the integrity of thy heart . We infer from this answer of God, (as I have lately remarked,) that Abimelech did not testify falsely concerning his own integrity. Yet, while God allows that his excuse is true, He nevertheless chastises him. Let us hence learn, that even they who are pure, according to human judgment, are not entirely free from blame.

Matthew Henry Presbyterian @wholebiblehenry

It appears by this that God revealed himself by dreams (which evidenced themselves to be divine and supernatural) not only to his servants the prophets, but even to those who were out of the pale of the church and covenant; but then, usually, it was with some regard to God's own people as in Pharaoh's dream, to Joseph, in Nebuchadnezzar's, to Daniel, and here, in...

Commenting on Genesis 20:3-7

John Gill Reformed Baptist @doctorgill

And God said unto him in a dream,.... The same dream continued: yea, or "also" I know that thou didst this in the integrity of thy heart; not only thou knowest, but I, who know all things, know and acknowledge that this was so done by thee.