We might call it the message of the story.
A moral or lesson of a story is often referred to as a "theme." Themes are overarching ideas or messages that the author is trying to convey through their work.
An alternative term for moral lesson in a story is "theme." Themes are the underlying messages or insights about life, society, or human nature that the story conveys.
That term is "moral." It is the lesson or message that is conveyed in a fable through a wise saying or statement at the end of the story.
"La moraleja" is a Spanish term that translates to "moral" or "lesson" in English. It refers to the message or lesson that can be derived from a story or situation. It is often used in the context of fables or tales to convey a moral teaching.
Another term for lesson learned is "takeaway" or "key insight."
A fable, as in Aesop's fables.
Fable.
The term you are looking for is a fable. Fables are short stories, usually involving animals as characters, that convey a moral or lesson at the end. These stories often have improbable or fanciful elements but are meant to teach a valuable truth to the reader.
allegoryfableparablemorality playsermonlecture
moral values
Didactic Literature
the moral of story was that we should help our friends and not be so brave that we cold fall down .
Moral responsibility.