1 Chronicles 28:2-8

2 Then King David rose to his feet and said, "Listen to me, my brethren and my people; I 1had intended to build a permanent home for the ark of the covenant of the LORD and for 2the footstool * of our God. So I had made preparations to build it.
3 "But God said to me, '3You shall not build a house for My name because you are a man of war and have shed blood.'
4 "Yet, the LORD, the God of Israel, 4chose me from all the house of my father to be king over Israel 5forever. For 6He has chosen Judah to be a leader; and 7in the house of Judah, my father's house, and among the sons of my father He took pleasure in me to make me king over all Israel.
5 "8Of all my sons (for the LORD has given me many sons ), 9He has chosen my son Solomon to sit on the throne of the kingdom of the LORD over Israel.
6 "He said to me, 'Your son 10Solomon is the one who shall build My house and My courts; for I have chosen him to be a son to Me, and I will be a father to him.
7 'I will establish his kingdom forever * 11if he resolutely performs My commandments and My ordinances, as is done now.'
8 "So now, in the sight of all Israel, the assembly of the LORD, and in the hearing of our God, observe and seek after all the commandments of the LORD your God so that you may possess the good land and bequeath it to your sons after you forever *.