[Machine] From some of the companions of Mu'adh from the people of Hims, it is reported that Mu'adh said: The Prophet ﷺ said to Mu'adh bin Jabal when he sent him to Yemen, "How will you judge if a matter is presented to you?" Mu'adh replied, "I will judge according to the Book of Allah." The Prophet ﷺ asked, "And if you do not find it in the Book of Allah?" Mu'adh said, "Then I will judge according to the Sunnah of the Messenger of Allah." The Prophet ﷺ asked, "And if you do not find it in the Sunnah of the Messenger of Allah?" Mu'adh said, "Then I will exert my own judgement." The Prophet ﷺ then patted Mu'adh's chest and said, "All praise is due to Allah who has made the Messenger of the Messenger of Allah ﷺ successful in what pleases his Messenger."
عَنْ نَاسٍ مِنْ أَصْحَابِ مُعَاذٍ مِنْ أَهْلِ حِمْصٍعَنْ مُعَاذٍ أَنَّ النَّبِيَّ ﷺ قَالَ لِمُعَاذِ بْنِ جَبَلٍ حِينَ بَعَثَهُ إِلَى الْيَمَنِ فَذَكَرَ كَيْفَ تَقْضِي إِنْ عَرَضَ لَكَ قَضَاءٌ؟ قَالَ أَقْضِي بِكِتَابِ اللهِ قَالَ فَإِنْ لَمْ يَكُنْ فِي كِتَابِ اللهِ؟ قَالَ فَبِسُنَّةِ رَسُولِ اللهِ قَالَ فَإِنْ لَمْ يَكُنْ فِي سَنَةِ رَسُولِ اللهِ؟ قَالَ أَجْتَهِدُ رَأْيِي وَلَا آلُو قَالَ فَضَرَبَ صَدْرِي فَقَالَ الْحَمْدُ لِلَّهِ الَّذِي وَفَّقَ رَسُولَ رَسُولِ اللهِ ﷺ لِمَا يُرْضِي رَسُولَهُ