The Lord repented. 2 Samuel 24:16
Trivia: Who said this to David: I will force your neighbor to have sex with your wives in the sight of everyone?