Hudhayfah ibn Al-Yaman reported: The Prophet, peace and blessings be upon him, said, “By the one in whose hand is my soul, you must enjoin good and forbid evil, or else Allah will soon send punishment upon you. Then, you will call upon Allah and it will not be answered for you.”
Source: Sunan al-Tirmidhī 2169
Grade: Sahih (authentic) according to Ahmad Shakir
عَنْ حُذَيْفَةَ بْنِ الْيَمَانِ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ وَالَّذِي نَفْسِي بِيَدِهِ لَتَأْمُرُنَّ بِالْمَعْرُوفِ وَلَتَنْهَوُنَّ عَنْ الْمُنْكَرِ أَوْ لَيُوشِكَنَّ اللَّهُ أَنْ يَبْعَثَ عَلَيْكُمْ عِقَابًا مِنْهُ ثُمَّ تَدْعُونَهُ فَلَا يُسْتَجَابُ لَكُمْ
2169 سنن الترمذي كتاب الفتن باب ما جاء في الأمر بالمعروف والنهي عن المنكر
1/715 المحدث أحمد شاكر خلاصة حكم المحدث إسناده صحيح في عمدة التفسير