Psalm 119:62 in the King James Version
At midnight I will rise to give thanks unto thee because of thy righteous judgments.
Context
61 The ropes of the wicked bind me, but I won’t forget your law.
62 At midnight I will rise to give thanks to you, because of your righteous ordinances.
63 I am a friend of all those who fear you, of those who observe your precepts.