2 Samuel 7:6-7

7:6 I have not lived in a house from the time I brought the Israelites up from Egypt to the present day. Instead, I was traveling with them and living in a tent. 7:7 Wherever I moved among all the Israelites, I did not say to any of the leaders whom I appointed to care for my people Israel, “Why have you not built me a house made from cedar?”’

2 Samuel 7:2

7:2 The king said to Nathan the prophet, “Look! I am living in a palace made from cedar, while the ark of God sits in the middle of a tent.”

2 Samuel 6:5-11

6:5 while David and all Israel were energetically celebrating before the Lord, singing and playing various stringed instruments, tambourines, rattles, and cymbals.

6:6 When they arrived at the threshing floor of Nacon, Uzzah reached out and grabbed hold of the ark of God, because the oxen stumbled. 6:7 The Lord was so furious with Uzzah, he killed him on the spot for his negligence. He died right there beside the ark of God.

6:8 David was angry because the Lord attacked Uzzah; so he called that place Perez Uzzah, which remains its name to this very day. 6:9 David was afraid of the Lord that day and said, “How will the ark of the Lord ever come to me?” 6:10 So David was no longer willing to bring the ark of the Lord to be with him in the City of David. David left it in the house of Obed-Edom the Gittite. 6:11 The ark of the Lord remained in the house of Obed-Edom the Gittite for three months. The Lord blessed Obed-Edom and all his family.