Contradiction with Exodus 33:20
2 Samuel 22:7 depicts God listening and responding to a cry, while this verse states that no man can see God and live, implying a more distant relationship.
Exodus 33:20: And he said, Thou canst not see my face: for there shall no man see me, and live.
Contradiction with Isaiah 59:2
2 Samuel 22:7 shows God hearing David's cry, but this verse indicates that sin can separate people from God, so He does not hear them.
Isaiah 59:2: But your iniquities have separated between you and your God, and your sins have hid [his] face from you, that he will not hear. [have hid: or, have made him hide]
Contradiction with Proverbs 15:29
2 Samuel 22:7 portrays God as responsive to the prayer, whereas this verse claims that the Lord is far from the wicked and only hears the prayers of the righteous.
Proverbs 15:29: The LORD [is] far from the wicked: but he heareth the prayer of the righteous.
Contradiction with Lamentations 3:44
2 Samuel 22:7 describes God hearing David's voice, but this verse speaks of God covering Himself with a cloud so that prayers cannot pass through.
Lamentations 3:44: Thou hast covered thyself with a cloud, that [our] prayer should not pass through.