Genesis 20:6

6Then 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 aagainst me. Therefore I did not let you touch her.

1 Samuel 25:32-34

32And David said to Abigail, bBlessed be the Lord, the God of Israel, who sent you this day to meet me! 33Blessed be your discretion, and blessed be you, cwho have kept me this day from bloodguilt dand from working salvation with my own hand! 34For as surely eas the Lord, the God of Israel, lives, fwho has restrained me from hurting you, unless you had hurried and come to meet me, truly by morning there had not been left to Nabal so much as one male.”

1 Samuel 25:39

39When David heard that Nabal was dead, he said, gBlessed be the Lord who has havenged the insult I received at the hand of Nabal, iand has kept back his servant from wrongdoing. jThe Lord has returned the evil of Nabal on his own head.” Then David sent and kspoke to Abigail, to take her as his wife.
Copyright information for ESV