Then God said to Abimelech in the dream, “Yes, I know that you did this with a clear conscience, and so I have kept you from sinning against Me. That is why I did not let you touch her.
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.
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
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.