David's adultery with Bathsheba is interpreted as an opportunity to demonstrate the power of repentance, and the Talmud states that it was not adultery at all, quoting a Jewish practice of divorce on the eve of battle. Furthermore, according to Talmudic sources, the death of Uriah was not to be considered murder, on the basis that Uriah had committed a capital offense by refusing to obey a direct command from the King. However, in tractate Sanhedrin, David expressed remorse over his transgressions and sought forgiveness. God ultimately forgave David and Bathsheba but would not remove their sins from Scripture.