AHMAD 3889:
from Ibn Masʿūd —
[Machine] Indeed, the Prophet ﷺ said, "How would it be for you, O Abdullah, when you have rulers who abandon the Sunnah and delay the prayer beyond its appointed time?" Abdullah Sahabi replied, "How should I act, O Messenger of Allah?" The Prophet ﷺ said, "You should ask me, the son of a servant of Allah, how to act. There is no obedience to a creature in disobedience to Allah Almighty."
أحمد ٣٨٨٩:
عن ابن مسعود —
أَنَّ النَّبِيَّ ﷺ قَالَ كَيْفَ بِكَ يَا عَبْدَ اللهِ إِذَا كَانَ عَلَيْكُمْ أُمَرَاءُ يُضَيِّعُونَ السُّنَّةَ وَيُؤَخِّرُونَ الصَّلَاةَ عَنْ مِيقَاتِهَا؟ قَالَ كَيْفَ تَأْمُرُنِي يَا رَسُولَ اللهِ؟ قَالَ تَسْأَلُنِي ابْنَ أُمِّ عَبْدٍ كَيْفَ تَفْعَلُ؟ لَا طَاعَةَ لِمَخْلُوقٍ فِي مَعْصِيَةِ اللهِ ﷻ
hadithunlocked.com