In 2 Samuel, David’s sins include sexual assault, murder, lying, failing to trust God for protection, and ignoring evil within his own family. In one example, David sees a woman named Bathsheba bathing on her rooftop (2 Sam. 11). David uses his royal power to isolate and rape her, gets her pregnant, and tries to cover everything up by having her husband killed and immediately marrying her. Later on, David fails to discipline his son Amnon for raping his own daughter Tamar, leading to his other son, Absalom, trying usurp the throne (2 Sam. 13-18). And at one point, David decides to conduct a military census of the people of Israel in 2 Sam. 24, which displays his lack of trust in God's protection and provision. As the story progresses, and as a result of David’s sinful choices, we see his family and kingdom continue to fall apart.
Learn more about David and his rise and fall as Israel’s king in the video David the Priestly King.