[Machine] The Messenger of Allah ﷺ said, "Whoever is pleased with a ruler while being displeasing to his Lord, the Almighty, has abandoned the religion of Allah, Glorified and Exalted." Al-Alaq bin Abi Muslim mentioned this alone, and all the narrators to him are trustworthy. This is found in the last chapter of the book of judgments.
قَالَ رَسُولُ اللَّهِ ﷺ «مَنْ أَرْضَى سُلْطَانًا بِسَخَطِ رَبِّهِ ﷻ خَرَجَ مِنْ دِينِ اللَّهِ تَبَارَكَ وَتَعَالَى» تَفَرَّدَ بِهِ عَلَّاقُ بْنُ أَبِي مُسْلِمٍ وَالرُّوَاةُ إِلَيْهِ كُلُّهُمْ ثِقَاتٌ «آخِرُ كِتَابِ الْأَحْكَامِ» تفرد به علاق والرواة إليه ثقات