Psalm 119:92 in the King James Version
Unless thy law had been my delights, I should then have perished in mine affliction.
Context
91 Your laws remain to this day, for all things serve you.
92 Unless your law had been my delight, I would have perished in my affliction.
93 I will never forget your precepts, for with them, you have revived me.