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

Psalms 18:5

The sorrows of hell compassed me about: the snares of death prevented me.

Read in other translations