[Machine] I heard the Messenger of Allah ﷺ saying, "O people! Allah does not accept the prayer of an Imam who rules with anything other than what Allah has revealed." And he mentioned the rest of the narration.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ «أَلَا أَيُّهَا النَّاسُ لَا يَقْبَلُ اللَّهُ صَلَاةَ إِمَامٍ حَكَمَ بِغَيْرِ مَا أَنْزَلَ اللَّهُ» وَذَكَرَ بَاقِيَ الْحَدِيثِ