"The tabernacle built by Moses, with all that appertained to the sanctuary service, except the ark, was still at Gibeah. It was David's purpose to make Jerusalem the religious center of the nation. He had erected a palace for himself, and he felt that it was not fitting for the ark of God to rest within a tent. He determined to build for it a temple of such magnificence as should express Israel's appreciation of the honor granted the nation in the abiding presence of Jehovah their King. Communicating his purpose to the prophet Nathan, he received the encouraging response, “Do all that is in thine heart; for the Lord is with thee.” PP 711.3"
Both passages describe David's desire to build a temple for the Ark of God and his conversation with Nathan about it.
2 Samuel 7:8-9"Now therefore so shalt thou say unto my servant David, Thus saith the Lord of hosts, I took thee from the sheepcote, from following the sheep, to be ruler over my people, over Israel: And I was with thee whithersoever thou wentest, and have cut off all thine enemies out of thy sight, and have made thee a great name, like unto the name of the great men that are in the earth."
"But that same night the word of the Lord came to Nathan, giving him a message for the king. David was to be deprived of the privilege of building a house for God, but he was granted an assurance of the divine favor to him, to his posterity, and to the kingdom of Israel: “Thus saith Jehovah of hosts; I took thee from the sheepcote, from following the sheep, to be ruler over My people, over Israel; and I was with thee whithersoever thou wentest, and have cut off all thine enemies out of thy sight, and have made thee a great name, like unto the name of the great men that are in the earth. Moreover I will appoint a place for My people Israel, and will plant them, that they may dwell in a place of their own, and move no more; neither shall the children of wickedness afflict them any more, as beforetime.” PP 711.4"
EGW directly quotes 2 Samuel 7:8-9, attributing the words to the Lord speaking to David through Nathan.
"As David had desired to build a house for God, the promise was given. “The Lord telleth thee that He will make thee a house.... I will set up thy seed after thee.... He shall build a house for My name, and I will stablish the throne of his kingdom forever.” PP 712.1"
The EGW passage directly quotes 2 Samuel 7:13, attributing it as a promise given to David.
"Glorious are the promises made to David and his house, promises that look forward to the eternal ages, and find their complete fulfillment in Christ. The Lord declared: PP 754.7"
Both passages discuss the eternal establishment of David's house and kingdom. While EGW interprets this through the lens of Christ, the underlying promise is directly related to 2 Samuel 7:16.
"In connection with these assurances of acceptance, the Lord made very plain the path of duty before the king. “As for thee,” He declared, “if thou wilt walk before Me, as David thy father walked, and do according to all that I have commanded thee, and shalt observe My statutes and My judgments; then will I establish the throne of thy kingdom, according as I have covenanted with David thy father, saying, There shall not fail thee a man to be ruler in Israel.” 2 Chronicles 7:17, 18 . PK 46.2"
Both passages discuss the establishment of the kingdom and throne. While EGW quotes 2 Chronicles 7:17,18, the underlying promise echoes the Davidic covenant in 2 Samuel 7:16.
2 Samuel 7:18"Then went king David in, and sat before the Lord, and he said, Who am I, O Lord God? and what is my house, that thou hast brought me hitherto?"
"Though the cherished purpose of his heart had been denied, David received the message with gratitude. “Who am I, O Lord God?” he exclaimed, “and what is my house, that Thou hast brought me hitherto? And this was yet a small thing in Thy sight, O Lord God; but Thou hast spoken also of Thy servant's house for a great while to come;” and he then renewed his covenant with God. PP 712.3"
The EGW passage directly quotes 2 Samuel 7:18, attributing it to David's reaction to God's message.