Contradiction with 1 Chronicles 22:8
In this verse, God tells David that he cannot build the house for His name because he has shed much blood, contradicting 1 Kings 8:17, which shows David's desire to build the house without mentioning God's refusal.
1 Chronicles 22:8: But the word of the LORD came to me, saying, Thou hast shed blood abundantly, and hast made great wars: thou shalt not build an house unto my name, because thou hast shed much blood upon the earth in my sight.