אֲבָרֵ֗ךְ אֶת־יְ֭הוָה אֲשֶׁ֣ר יְעָצָ֑נִי אַף־לֵ֝יל֗וֹת יִסְּר֥וּנִי כִלְיוֹתָֽי׃
I will bless the LORD, who hath given me counsel; Yea, in the night seasons my reins instruct me.
Read Jewish philosophical commentary on Psalms 16:7: and classical philosophical sources.