In the book of Chronicles, God spoke to the Prophet Nathan and asked him to say to David, “Furthermore I tell thee that the LORD will build thee a house”. It is very interesting that God says He will build David a house.
One should therefore ask this question why would God choose to build David a house, of all the kings in Israel, before and after David, why David? Does that mean that God is partial? Far from it; We can however find the answer to this intriguing reason in 1st Chronicles 17:1 "Now it came to pass, as David sat in his house, that David said to Nathan the prophet, Lo, I dwell in a house of cedars, but the ark of the covenant of the LORD remaineth under curtains."