The Temple Cult: David’s & Solomon’s RELIGION
  " 'The LORD declares to you that the LORD himself will establish a house for you: 12 When your days are over and you rest with your fathers, I will raise up your offspring to succeed you, who will come from your own body, and I will establish his kingdom. 13 He is the one who will build a house for my Name, and I will establish the throne of his kingdom forever. 14 I will be his father, and he will be my son. When he does wrong, I will punish him with the rod of men, with floggings inflicted by men. 15 But my love will never be taken away from him, as I took it away from Saul, whom I removed from before you. 16 Your house and your kingdom will endure forever before me [b] ; your throne will be established forever.' "  (2 Sam. 7: 11b-16)
Here is what God told David through the prophet Nathan: