The Lord did this because David had done what pleased him and had never disobeyed any of his commands, except in the case of Uriah the Hittite.