Hudhaifah (May Allah bepleased with him) reported:
The Prophet (ﷺ) said, "By Him in Whose Hand my life is, you either enjoin good and forbid evil, or Allah will certainly soon send His punishment to you. Then you will make supplication and it will not be accepted".[At-Tirmidhi].
Arabic/English book reference: Book 1, Hadith 193