moralizing, having moralized
Старик, всю жизнь морализировавший, теперь молчал.
The old man, who had moralized all his life, was silent now.
Учитель, морализировавший на каждом уроке, всех утомил.
The teacher, who moralized in every lesson, had worn everyone out.