King James Version (KJV)
I went down to the bottoms of the mountains; the earth with her bars {was} about me for ever: yet hast thou brought up my life from corruption, O LORD my God. {bottoms: Heb. cuttings off} {corruption: or, the pit}
Modern English
I went down to the bottoms of the mountains. The earth barred me in forever: yet have you brought up my life from the pit, Yahweh my God.
Hebrew
אֲפָפ֤וּנִי מַ֙יִם֙ עַד־נֶ֔פֶשׁ תְּה֖וֹם יְסֹבְבֵ֑נִי ס֖וּף חָב֥וּשׁ לְרֹאשִֽׁי׃
ʾapapvniy mayim ʿad-nepesh thvom ysobbeniy svf ḥabvsh lroʾshiy