1 Chronicles 17:1-7

1 King David was now living in his palace. One day he sent for the prophet Nathan and said to him, "Here I am living in a house built of cedar, but the Lord's Covenant Box is kept in a tent!"
2 Nathan answered, "Do whatever you have in mind, because God is with you."
3 But that night God said to Nathan,
4 "Go and tell my servant David that I say to him, "You are not the one to build a temple for me to live in.
5 From the time I rescued the people of Israel from Egypt until now I have never lived in a temple; I have always lived in tents and moved from place to place.
6 In all my traveling with the people of Israel I never asked any of the leaders that I appointed why they had not built me a temple made of cedar.'
7 "So tell my servant David that I, the Lord Almighty, say to him, "I took you from looking after sheep in the fields and made you the ruler of my people Israel.