2 Samuel 22 and Psalm 18 inspired much of the encouraging text of the New Testament. Nothing that the Apostles or Yeshua taught was original with them. They taught only what God had already given.

"Judge not, lest you be judged" in Matthew 3:1-2 => 2 Samuel 22:25-27.
"With God all things are possible" in Matthew 19:26 => 2 Samuel 22:30.
"I can do all things thru Christ" in Philippians 4:13 => 2 Samuel 22:22-30.
"Who can possibly be against us" in Romans 8:31 => 2 Samuel 22:34-37.