David had always done what the Lord said was right. He had always obeyed his commands. The only time David did not obey the Lord was when he sinned against Uriah the Hittite.
This is what the Lord All-Powerful said: “Live the way I tell you, and do everything I say. And you will be in charge of my Temple. You will take care of its courtyard. You will be free to go anywhere in my Temple, just as these angels standing here.
David’s family was ruling the kingdom of Israel, but I took the kingdom away from them and gave it to you. But you are not like my servant David. He always obeyed my commands and followed me with his whole heart. He did only what I accepted.
If you live right and obey all my commands as David did, I will be with you and make your family a family of kings, just as I did for David. And you will have Israel as your kingdom.
Now, Lord, God of Israel, keep the other promises you made to your servant David, my father. You said, ‘David, if your sons carefully obey me as you did, you will always have someone from your family ruling the people of Israel.’
“Now, if you will be careful to obey the Lord your God and follow all his commands that I tell you today, the Lord your God will put you high above all the nations on earth.
Solomon showed that he loved the Lord by obeying everything his father David told him to do, except that Solomon continued to go to the high places to offer sacrifices and to burn incense.
Solomon answered, “You were very kind and loyal to your servant, my father David. He was faithful to you and lived a good, honest life. And you showed him the greatest kindness when you let his son take his place as king.