While on the roof of his palace one day, King David spotted a beautiful woman bathing. Instantly attracted, he had the woman, Bathsheba, brought to his palace. He then slept with her.
Soon afterwards, Bathsheba, who was already married, sent word to David that she was pregnant. In an attempt to cover up the affair, David recalled her husband, Uriah the Hittite, who used to serve in his army.
Despite showing Uriah all-out hospitality and even getting him drunk, David was unable to persuade him to return home to sleep with his wife. This loyal military man felt duty-bound not to indulge in such a luxury while his fellow soldiers were risking their lives on the battlefield.