Hebrew Bible

Jonah 2:5

3 You threw me into the deep waters, into the middle of the sea; the ocean current engulfed me; all the mighty waves you sent swept over me. 4 I thought I had been banished from your sight and that I would never again see your holy temple. 5 Water engulfed me up to my neck; the deep ocean surrounded me; seaweed was wrapped around my head. 6 I went down to the very bottoms of the mountains; the gates of the netherworld barred me in forever, but you brought me up from the Pit, O Lord, my God. 7 When my life was ebbing away, I called out to the Lord. And my prayer came to you, to your holy temple.

Date: 3rd Century B.C.E.
* Dates are based on scholarly estimates
Hebrew Bible

Psalm 18:4

2 The Lord is my high ridge, my stronghold, my deliverer. My God is my rocky summit where I take shelter, my shield, the horn that saves me, and my refuge. 3 I called to the Lord, who is worthy of praise, and I was delivered from my enemies. 4 The waves of death engulfed me, the currents of chaos overwhelmed me. 5 The ropes of Sheol tightened around me, the snares of death trapped me. 6 In my distress I called to the Lord; I cried out to my God. From his heavenly temple he heard my voice; he listened to my cry for help.

Date: 6th-3rd Centuries B.C.E.
* Dates are based on scholarly estimates