1 Kings 14:8

and tore the kingdom away from the house of David and gave it to you, and yet you have not been like my servant David, who kept my commandments and followed me with all his heart, doing only that which was right in my eyes,