Contradiction with John 8:12
John 8:12 speaks of Jesus as the light of the world, which contrasts with 2 Samuel 22:12 where God is described as making darkness His secret place.
John 8:12: Then spake Jesus again unto them, saying, I am the light of the world: he that followeth me shall not walk in darkness, but shall have the light of life.
Contradiction with 1 John 1:5
This verse emphasizes that "God is light, and in him is no darkness at all," which contradicts the imagery of God surrounding Himself with darkness in 2 Samuel 22:12.
1 John 1:5: This then is the message which we have heard of him, and declare unto you, that God is light, and in him is no darkness at all.