1 Chronicles 29:18-28 NLT

18 “O LORD , the God of our ancestors Abraham, Isaac, and Israel, make your people always want to obey you. See to it that their love for you never changes.
19 Give my son Solomon the wholehearted desire to obey all your commands, laws, and decrees, and to do everything necessary to build this Temple, for which I have made these preparations.”
20 Then David said to the whole assembly, “Give praise to the LORD your God!” And the entire assembly praised the LORD , the God of their ancestors, and they bowed low and knelt before the LORD and the king.
21 The next day they brought 1,000 bulls, 1,000 rams, and 1,000 male lambs as burnt offerings to the LORD . They also brought liquid offerings and many other sacrifices on behalf of all Israel.
22 They feasted and drank in the LORD ’s presence with great joy that day. And again they crowned David’s son Solomon as their new king. They anointed him before the LORD as their leader, and they anointed Zadok as priest.
23 So Solomon took the throne of the LORD in place of his father, David, and he succeeded in everything, and all Israel obeyed him.
24 All the officials, the warriors, and the sons of King David pledged their loyalty to King Solomon.
25 And the LORD exalted Solomon in the sight of all Israel, and he gave Solomon greater royal splendor than any king in Israel before him.
26 So David son of Jesse reigned over all Israel.
27 He reigned over Israel for forty years, seven of them in Hebron and thirty-three in Jerusalem.
28 He died at a ripe old age, having enjoyed long life, wealth, and honor. Then his son Solomon ruled in his place.