David was chosen by God to be king over Israel. Several passages describe David as a man after God's own heart who faithfully led God's people according to God's will. When faced with curses and attacks against him, David maintained self-control and trusted in God rather than retaliate, showing the integrity of his heart. God promises in Ezekiel to replace stubborn hearts with tender, responsive hearts that are willing to obey Him.