בְּכָל־דְּרָכֶ֥יךָ דָעֵ֑הוּ וְ֝ה֗וּא יְיַשֵּׁ֥ר אֹֽרְחֹתֶֽיךָ׃
אין אַלע דײַנע װעגן טו אים קענען, און ער װעט גלײַך מאַכן דײַנע שטעגן.
Avot DeRabbi Natan
Let all your actions be for the sake of Heaven. Meaning, for the sake of Torah, as it says (Proverbs 3:6), “In all your ways, know [God], and He will straighten out your paths.”
Berakhot
Bar Kappara expounded : Which is a brief Scriptural passage upon which all the principles of the Torah depend? "In all thy ways acknowledge Him, and He will direct thy paths" (ibid. iii. 6). Raba said : Even for a matter of transgression.