verb
moralize
MOR-uh-lyze/ˈmɔːrəlaɪz/
To discuss or interpret something as a lesson about right and wrong.
The speaker moralizes about littering even after the listener cleans up.

Etymology
Built on the root for customs and manners, moralize originally meant to draw out a moral or spiritual lesson. Making moral reflections connects that use with the selected sense of commenting preachily on right and wrong.
In context
you've got the cheek to come on here and moralize because you failed to get me tickets and make a dream come true
More examples
- The teacher moralizes about honesty while discussing the story.
- Rather than moralize about his mistake, we help him fix it.
- The essay moralizes about the dangers of greed.
Forms
moralize · moralizes · moralized · moralizing
moralizer noun — Someone who comments on right and wrong.