Since it was almost time for David to die, he gave his son Solomon his last commands. David said, “My time to die is near. Be a good and strong leader. Obey the LORD your God. Follow him by obeying his demands, his commands, his laws, and his rules that are written in the teachings of Moses. If you do these things, you will be successful in all you do and wherever you go. And if you obey the LORD, he will keep the promise he made to me. He said: ‘If your descendants live as I tell them and have complete faith in me, a man from your family will always be king over the people of Israel.’
“Also, you remember what Joab son of Zeruiah did to me. He killed the two commanders of Israel’s armies: Abner son of Ner and Amasa son of Jether. He did this as if he and they were at war, although it was a time of peace. He put their blood on the belt around his waist and on his sandals on his feet. Punish him in the way you think is wisest, but do not let him die peacefully of old age.
“Be kind to the children of Barzillai of Gilead, and allow them to eat at your table. They welcomed me when I ran away from your brother Absalom.
“And remember, Shimei son of Gera, the Benjaminite, is here with you. He cursed me the day I went to Mahanaim. But when he came down to meet me at the Jordan River, I promised him before the Lord, ‘Shimei, I will not kill you.’ But you should not leave him unpunished. You are a wise man, and you will know what to do to him, but you must be sure he is killed.”
Then David died and was buried with his ancestors in Jerusalem. He had ruled over Israel forty years—seven years in Hebron and thirty-three years in Jerusalem.
Solomon became king after David, his father, and he was in firm control of his kingdom.
At this time Adonijah son of Haggith went to Bathsheba, Solomon’s mother. “Do you come in peace?” Bathsheba asked.
“Yes. This is a peaceful visit,” Adonijah answered. “I have something to say to you.”
“You may speak,” she said.
“You remember that at one time the kingdom was mine,” Adonijah said. “All the people of Israel recognized me as their king, but things have changed. Now my brother is the king, because the LORD chose him. Now I have one thing to ask you; please do not refuse me.”
Bathsheba answered, “What do you want?”
“I know King Solomon will do anything you ask him,” Adonijah continued. “Please ask him to give me Abishag the Shunammite to be my wife.”
“Very well,” she answered. “I will speak to the king for you.”
So Bathsheba went to King Solomon to speak to him for Adonijah. When Solomon saw her, he stood up to meet her, then bowed down, and sat on the throne. He told some servants to bring another throne for his mother. Then she sat down at his right side.