Psalm 119:62
At midnight I rise to give You thanks for Your righteous judgments.
Berean Standard Bible
At midnight I will rise to give thanks unto thee because of thy righteous judgments.
At midnight I will rise to give thanks to you, because of your righteous ordinances.