David saw Bathsheba and slept with her. David also sent he husband into the front lines of battle so that they could get married and have children.
Bathsheba had a son, but because Davids sin he died. Bathsheba bore a second son which grew up to attack David and rebel against him, but in the battle absolom died David and Bathsheba are heartbroken.
David starts building the lords temple after the lords instructions . But before he can finish he turn the throne over to his youngest son Solomon and dies.