סימן קמד סעיף ב
כְּתִיב, מִפְּנֵי שֵׂיבָה תָּקוּם וְהָדַרְתָּ פְּנֵי זָקֵן. זָקֵן זֶה, פֵּרוּשׁוֹ תַּלְמִיד חָכָם, כְּמוֹ שֶׁנֶּאֱמַר, אֶסְפָה לִּי שִבְעִים אִישׁ מִזִּקְנֵי יִשְֹרָאֵל, (וְהָתָם וַדַּאי בְּחָכְמָה תַּלְיָא מִלְּתָא, כְּדִכְתִיב, אֲשֶׁר יָדַעְתָּ כִּי הֵם זִקְנֵי הָעָם וְשֹׁטְרָיו). לָכֵן מִצְוַת עֲשֵׂה לָקוּם מִפְּנֵי תַלְמִיד חָכָם מֻפְלָג בַּתּוֹרָה, אֲפִלּוּ אֵינוֹ זָקֵן בַּשָׁנִים וְאֵינוֹ רַבּוֹ. וְכֵן מִצְוָה לָקוּם מִפְּנֵי שֵׂיבָה, דְּהַיְנוּ בֶּן שִׁבְעִים שָׁנָה, וַאֲפִלּוּ הוּא עַם הָאָרֶץ, וּבִלְבַד שֶׁלֹּא יְהֵא רָשָׁע. וַאֲפִלּוּ זָקֵן גּוֹי, מְהַדְּרִים אוֹתוֹ בִּדְבָרִים וְנוֹתְנִים לוֹ יָד לְסָמְכוֹ.
It is written, "In the presence of the elderly you shall rise and you shall respect an elder."1Leviticus 19:32. "An elder," in this context refers to a Torah scholar as it is said, "Gather to me seventy men from the elders of Yisrael"2Numbers 11:16. (and there certainly the situation called for wisdom as it is written, "Whom you know to be the elders of the people and its officers.")2Numbers 11:16. Therefore, it is a positive command to rise before a Torah scholar who is distinguished in the knowledge of Torah, even if he is not advanced in years and is not your teacher. It is also a mitzvah to rise before an elderly person if he is at least seventy years old, even if he is an ignorant person, provided he is not a wicked person. Even to an elderly person who is not Jewish, you should talk respectfully and give him a helping hand.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)