Riyad as-Salihin · App record 188
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
الخامس: عن أم المؤمنين أم سلمة هند بنت أبي أمية حذيفة رضي الله عنها، عن النبي صلى الله عليه وسلم أنه قال: إنه يستعمل عليكم أمراءُ فتعرفون وتنكرون فمن كره فقد برئ، ومن أنكر فقد سلم، ولكن من رضي وتابع” قالوا: يا رسول الله ألا نقاتلهم؟ قال: "لا ، الإمام أقاموا فيكم الصلاة" ((رواه مسلم))."
Umm Salamah (May Allah be pleased with her) reported:
The Prophet (ﷺ) said, "You will have rulers some of whom you approve and some of whom you will disapprove. He who dislikes them will be safe, and he who expresses disapproval will be safe, but he who is pleased and follows them (will be indeed sinful)". His audience asked: "Shall we not fight them?" He replied, "No, as long as they establish Salat amongst you". [Muslim].
Full reference and source
Arabic/English book : Book 1, Hadith 188
View source on Sunnah.com (opens in a new tab)