One evening David, King of Israel, walking on the roof of his palace saw the beautiful Bathsheba taking a bath. He had her brought to his palace and made love to her which caused her to become pregnant. Her husband Uriah was in David's army. David asked Uriah's army commander to place him at the front of the battle to get him killed, which indeed happened and David was thus able to marry Bathsheba. The child she gave birth to died soon and David did penance.