preachment

/ˈpriːtʃmənt/
noun
  1. A long, boring speech giving moral advice or telling people how to behave.
    • The teacher's preachment about respect fell on deaf ears.
    • We had to sit through another preachment about the dangers of procrastination.
    • His preachment on the importance of punctuality lasted over an hour.