New King James Version (NKJV)
1 Kings 2
42 Then the king sent and called for Shimei, and said to him, "Did I not make you swear by the Lord, and warn you, saying, ’Know for certain that on the day you go out and travel anywhere, you shall surely die’? And you said to me, ’The word I have heard is good.’
43 Why then have you not kept the oath of the Lord and the commandment that I gave you?"
44 The king said moreover to Shimei, "You know, as your heart acknowledges, all the wickedness that you did to my father David; therefore the Lord will return your wickedness on your own head.
45 But King Solomon shall be blessed, and the throne of David shall be established before the Lord forever."
46 So the king commanded Benaiah the son of Jehoiada; and he went out and struck him down, and he died. Thus the kingdom was established in the hand of Solomon.
1 Kings 3
1 Now Solomon made a treaty with Pharaoh king of Egypt, and married Pharaoh’s daughter; then he brought her to the City of David until he had finished building his own house, and the house of the Lord, and the wall all around Jerusalem.
2 Meanwhile the people sacrificed at the high places, because there was no house built for the name of the Lord until those days.
3 And Solomon loved the Lord, walking in the statutes of his father David, except that he sacrificed and burned incense at the high places.
4 Now the king went to Gibeon to sacrifice there, for that was the great high place: Solomon offered a thousand burnt offerings on that altar.
5 At Gibeon the Lord appeared to Solomon in a dream by night; and God said, "Ask! What shall I give you?"
6 And Solomon said: "You have shown great mercy to Your servant David my father, because he walked before You in truth, in righteousness, and in uprightness of heart with You; You have continued this great kindness for him, and You have given him a son to sit on his throne, as it is this day.