Commentary for Berakhot 125:13
דרש בר קפרא איזוהי פרשה קטנה שכל גופי תורה תלוין בה (משלי ג, ו) בכל דרכיך דעהו והוא יישר ארחותיך אמר רבא אפילו לדבר עבירה
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.
Abraham Cohen Footnotes to the English Translation of Masechet Berakhot
I.e. even if engaged upon something forbidden, think of Him, then "He will direct (lit. straighten) thy paths." There are some who explain that the transgression refers only to the violation of a religious rite, as, e.g., the desecration of the Sabbath for the purpose of saving life. Some MSS (cf. D. S. ad loc.) insert here the proverb: The thief on the point of breaking into [a house] calls on God [for help].
Ask RabbiBookmarkShareCopy