2 Samuel 11:2

11:2 One evening David got up from his bed and walked around on the roof of his palace. From the roof he saw a woman bathing. Now this woman was very attractive.

2 Samuel 24:10

24:10 David felt guilty after he had numbered the army. David said to the Lord, “I have sinned greatly by doing this! Now, O Lord, please remove the guilt of your servant, for I have acted very foolishly.”