Harsh punishment of someone who commands right or forbids wrong while his own actions contradict what he says

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

24. Chapter: On the harsh punishment of someone who commands right or forbids wrong while his own actions contradict what he says

Allah Almighty says, "Do you order people to devoutness and forget yourselves, when you recite the Book? Will you not use your intellect?" (W2:43; W2:44)

and the Almighty says, "O you who believe! Why do you say that what you do not do? It is deeply abhorrent to Allah that you should say what you do not do." (61:2-3)

The Almighty says, "I would clearly not want to go behind your backs and do something I have forbidden you to do." (11:88)

198. Abu Zayd Usama ibn Zayd ibn Haritha said, "I heard the Messenger of Allah, may Allah bless him and grant him peace, say, 'A man will be brought on the Day of Rising and thrown into the Fire and the intestines of his belly will come out and he will be dragged round by them as the donkey goes round the mill. The people of the Fire will gather round him and say, "So-and-so! What has happened to you? Did you not command the right and forbid the wrong?" He will say, "Yes. I used to command the right and forbid the wrong and then do it."'" [Agreed upon]