In 2 Samuel 11, King David, while remaining in Jerusalem during wartime, sees Bathsheba bathing and subsequently sleeps with her, leading to her pregnancy. In an attempt to cover up the affair, David summons her husband Uriah from the battlefield, but Uriah refuses to go home out of loyalty to his fellow soldiers. Ultimately, David orchestrates Uriah's death in battle to conceal his wrongdoing, highlighting the dangers of temptation and moral disengagement.