All the assembly made a covenant with the king in God’s house. Jehoiada said to them, “The king’s son will reign, as YHWH has spoken concerning the sons of David.
However YHWH would not destroy David’s house, because of the covenant that he had made with David, and as he promised to give a lamp to him and to his children always.
“Now therefore, YHWH, the God of Israel, keep the promise you made to your servant David my father, saying, ‘There will not fail to be a man in my sight to sit on the throne of Israel, if only your children watch their way and walk in my law as you have walked before me.’
When your days are fulfilled and you sleep with your fathers, I will set up your offspring after you, who will proceed out of your body, and I will establish his kingdom.
then I will establish the throne of your kingdom, according as I covenanted with David your father, saying, ‘You will never fail to have a man being ruler in Israel.’
Then YHWH may establish ʜɪꜱ word which he spoke concerning me, saying, ‘If your children are careful of their way, and walk before me in truth with all their heart and with all their soul, you will never fail to have,’ he said, ‘a man on the throne of Israel.’
So all the elders of Israel came to the king to Hebron; and David made a covenant with them in Hebron before YHWH. They anointed David king over Israel, according to the word of YHWH by Samuel.
then I will establish the throne of your kingdom over Israel forever, as I promised to David your father, saying, ‘You will never fail to have a man on the throne of Israel.’
So all the elders of Israel came to the king to Hebron. King David made a covenant with them in Hebron before YHWH, and they anointed David king over Israel.