סימן לא סעיף ג
הַיְשִׁיבָה וְהַקִּימָה וְהַהֲלִיכָה כֵּיצַד. אֵין צָרִיךְ לוֹמַר שֶׁלֹּא יֵשֵׁב בְּמוֹשַׁב לֵצִים, וְשֶׁלֹּא לַעֲמֹד בְּדֶרֶךְ חַטָּאִים, וְשֶׁלֹּא לֵילֵךְ בַּעֲצַת רְשָׁעִים. אֶלָּא אֲפִלּוּ לֵישֵׁב בְּסוֹד יְשָׁרִים, וְלַעֲמֹד בִּמְקוֹם צַדִּיקִים, וְלֵילֵךְ בַּעֲצַת תְּמִימִים, אִם עָשָׂה לַהֲנָאַת עַצְמוֹ, לְהַשְׁלִים חֶפְצוֹ וְתַאֲוָתוֹ, אֵין זֶה מְשֻׁבָּח, אֶלָּא יַעֲשֶׂה לְשֵׁם שָׁמַיִם. וּמִכָּל מָקוֹם, גַּם אִם אִי אֶפְשָׁר לוֹ לְכַוֵּן לְשֵׁם שָׁמַיִם דַּוְקָא, אַל יִמְנַע אֵת עַצְמוֹ מִדְּבָרִים אֵלּוּ, כִּי מִתּוֹךְ שֶׁלֹּא לִשְׁמָהּ יָבֹא לִשְׁמָהּ.
How [can you serve God by] sitting, getting up and walking? Needless to say, you should not sit in the company of scoffers, nor stand in the way of sinners, nor walk in the counsel of the wicked.3Meaning, nor follow the advice of the wicked. The three classes of people mentioned here, scoffers, sinners, and the wicked are mentioned in Psalms 1:1 as the ones that should be shunned by a God fearing Jew. But even if you sit in a meeting of honest men, and stand in the place of the righteous, and walk in the counsel of the perfect, but you do this to satisfy your own desires, to gratify your ambitions and cravings, that is not a praisworthy [attitude]. You should do [these things] for the sake of Heaven. Nevertheless, if you are unable to direct your thoughts to act exclusively for the sake of Heaven, you should not abstain from doing these things, for by doing good for ulterior motives you will eventually do them for the sake of Heaven.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)