ספר המדות, Repentance / Part I Repentance / Part I · כח
Sefer HaMiddot 2485
כח. תְּחִלַּת הַמַּחֲשָׁבָה עוֹזֶרֶת לָאָדָם לְאֶמְצַע וְסוֹף הַמַעֲשֶּׂה, שֶׁיֻּמְשַׁךְ בִּקְדֻשָּׁה, וְאִם לא חָשַׁב בִּקְדֻשָּׁה בִּתְחִלָּה, אָז יֶאֱרַע תַּקָּלָה בְּאֶמְצַע וּבַסּוֹף.
28. The first thoughts helps a person through the execution and finishing of the project, that it should be carried out in holiness. However, if he did not think in holiness at the beginning, then mishaps will arise in the middle and at the end.