Psalm 119:143 (NIV)

Trouble and distress have come upon me, but your commands are my delight.