Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

Psalms 27:3

Though an host should encamp against me, my heart shall not fear: though war should rise against me, in this will I be confident.

Read in other translations