Contradiction with 1 Chronicles 22:8
This verse contradicts with 2 Samuel 7:1 as it mentions David was not allowed to build a temple because he shed much blood, whereas 2 Samuel 7:1 depicts a time of rest and peace for David from his enemies.
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.
Contradiction with 1 Kings 8:18-19
This verse contradicts with 2 Samuel 7:1 because, in it, David is not the one who will build the temple, despite his rest from enemies and desire to do so initially mentioned in 2 Samuel 7:1.
1 Kings 8:18-19: And the LORD said unto David my father, Whereas it was in thine heart to build an house unto my name, thou didst well that it was in thine heart.
Contradiction with Hebrews 4:8-9
These verses suggest that Joshua did not give rest, pointing to a different type of eventual rest for the people of God, which contradicts the kind of rest David experiences in 2 Samuel 7:1.
Hebrews 4:8-9: For if Jesus had given them rest, then would he not afterward have spoken of another day. [Jesus: that is, Joshua]