[Machine] When the Prophet ﷺ sent him to Yemen, he asked him, "How will you judge if a case is presented to you?" He said, "I will judge according to the Book of Allah." He asked, "And if you find nothing in the Book of Allah?" He said, "Then I will judge according to the Sunnah of the Messenger of Allah ﷺ ." He asked, "And if you find nothing in the Sunnah of the Messenger of Allah ﷺ ?" He said, "I will exert my own effort to the best of my ability." He ﷺ then tapped his chest and said, "Praise be to Allah who has aided the messenger of the Messenger of Allah to what pleases the Messenger of Allah."
أَنَّ النَّبِيَّ ﷺ لَمَّا بَعَثَهُ إِلَى الْيَمَنِ قَالَ لَهُ «كَيْفَ تَقْضِي إِنْ عَرَضَ لَكَ قَضَاءٌ؟» قَالَ أَقْضِي بِكِتَابِ اللهِ قَالَ «فَإِنْ لَمْ يَكُنْ فِي كِتَابِ اللهِ؟» قَالَ فَبِسُنَّةِ رَسُولِ اللهِ ﷺ قَالَ «فَإِنْ لَمْ يَكُنْ فِي سُنَّةِ رَسُولِ اللهِ ﷺ؟» قَالَ أَجْتَهِدُ رَأْيِي وَلَا آلُو قَالَ فَضَرَبَ رَسُولُ اللهِ ﷺ صَدْرَهُ وَقَالَ «الْحَمْدُ لِلَّهِ الَّذِي وَفَّقَ رَسُولَ رَسُولِ اللهِ ﷺ لِمَا يُرْضِي رَسُولَ اللهِ ﷺ»