its called a 'fable'.
I assume that the synonym you are looking for is a 'parable', which is a short story, such as those Jesus told, which teaches a moral or spiritual lesson.
The lesson in a story is called the moral.
It is called the moral of the story.
The lesson within a story is called the moral.
what is the meaning please ineed alot of help from you guys
to illustrate a moral or general truth about human nature. apex
This type of literary work is known as a didactic literature. It aims to instruct or teach readers a moral or religious lesson, often through examples and practical advice. Examples include fables, parables, and religious texts.
didactic literature
Moral lesson in karaniwang tao
The moral lesson of it is not to be envy..
moral lesson of dahong palay
A moral? Is that the word you're looking for?