When readers learn a life lesson by reading a story, they have discovered the: Theme.
The theme in a story is the core message, concept or idea (s) that was explored in a narrative through the aid of the characters, the setting, the plot or the main conflict, and all the elements the author included during the course of the story. The theme can be presented much clearer in the resolution.