Contradiction with 2 Chronicles 13:12
2 Samuel 10:17 describes God giving victory to David's army, while 2 Chronicles 13:12 underscores that God is with the faithful and those He supports will prevail, suggesting divine support is conditional.
2 Chronicles 13:12: And, behold, God himself [is] with us for [our] captain, and his priests with sounding trumpets to cry alarm against you. O children of Israel, fight ye not against the LORD God of your fathers; for ye shall not prosper.