The Chinukh presents the commandment as a foundational ethical obligation and explains its educational purpose in cultivating gratitude and proper conduct.
מִצְוַת כִּבּוּד אָב וָאֵם – לְכַבֵּד הָאָב וְהָאֵם, שֶׁנֶּאֱמַר (שמות כ יב) כַּבֵּד אֶת אָבִיךָ וְאֶת אִמֶּךָ וְגוֹ'. וּבָא הַפֵּרוּשׁ (קדושין לא, ב) אֵי זֶהוּ כִּבּוּד, מַאֲכִיל וּמַשְׁקֶה מַלְבִּישׁ וּמְכַסֶּה מַכְנִיס וּמוֹצִיא. דִּינֵי הַמִּצְוָה, כְּגוֹן כִּבּוּד זֶה מִנִּכְסֵי מִי חַיָּב לַעֲשׂוֹתוֹ אִם מִשֶּׁל אָב אוֹ מִשֶּׁל עַצְמוֹ, וַהֲלָכָה (שם לב א) מִשֶּׁל אָב אִם יֵשׁ לוֹ נְכָסִים לָאָב וְאִם לָאו יְחַזֵּר הַבֵּן אֲפִילּוּ עַל הַפְּתָחִים (עי' ירושלמי קידושין א ז) וְיַאֲכִיל אָבִיו, וְכִבּוּד אָב וְאֵם אֵי זֶה קוֹדֵם וְעַד הֵיכָן כִּבּוּד אָב, וְאִם מָחַל עַל כְּבוֹדוֹ אִם יִהְיֶה מָחוּל. וְאִם יִרְאֶנּוּ עוֹבֵר עַל דִּבְרֵי תוֹרָה בְּאֵיזֶה לָשׁוֹן יִמְנָעֵהוּ, וְאִם יְצַוֵּהוּ אָבִיו לַעֲבֹר עַל דִּבְרֵי תוֹרָה שֶׁלֹּא יַאֲמִינֵהוּ בָּזֶה, וְכִי חַיָּב לְכַבְּדוֹ בְּחַיָּיו וּבְמוֹתוֹ, וְכֵיצַד הוּא הַכִּבּוּד בְּמוֹתוֹ, וְיֶתֶר פְּרָטֶיהָ, מְבֹאָרִים בְּקִדּוּשִׁין וּקְצָת מֵהֶן בִּמְקוֹמוֹת אֲחֵרִים מֵהַגְּמָרָא (יו"ד סימן ר"מ).
The commandment to honor father and mother: To honor father and mother, as it is stated (Exodus 20:12), “You shall honor your father and your mother.” And the explanation (Kiddushin 31b) comes to [define it], “What does it mean to ‘honor’? To feed, give drink, dress, bring in, and take out.” The laws of this commandment — for example, whose property should be spent on this honor, the child’s or the parent’s, and the ruling (Kiddushin 32a) is that it is out of the parent’s if the parent has assets, but if not, the child must even beg door to door (see Talmud Yerushalmi Kiddushin 1:7) in order to feed his parent; which takes priority, honoring the father or the mother; if [the parent] waives that honor [if it is effective]; if the child sees the parent violating the Torah’s words, with what words should he stop them; if his father commands him to violate the Torah’s words, that he should not believe him about it; that the child is obligated to honor [the parent] in life and in death, and how is the honor in death; and the rest of its details — are [all] elucidated in Tractate Kiddushin and in a few other places in the Gemara. (See Tur, Yoreh Deah 240.)