"عَنْ قَتَادَةَ، عَنْ أَبِى الْعَالِيَةِ، عَنْ عَلِىٍّ قَالَ: القُضَاةُ ثَلَاثَةٌ فَاثْنانِ فِى النَّارِ وَوَاحِدٌ فِى الْجَنَّةِ، فَأَمَّا اللَّذانِ فِى النَّارِ فَرَجُلٌ جَارَ عَنْ الْحَقِّ مُتَعَمِّدًا وَرَجُلٌ اجْتَهَدَ رَأيَهُ فَأَخْطَأَ، وَأَمَّا الَّذِى فِى الْجَنَّةِ فَرَجُلٌ اجْتَهَدَ رَأيَهُ فِى الْحَقِّ فَأَصَابَ، فَقَالَ قَتَادَةُ: فَقُلْتُ لأَبِى الْعَالِيَةِ: مَا بِالُ هَذَا الَّذِى اجتْهَدَ فِى الْحَقَّ فَأَخْطَأَ؟ فَقَالَ: لَوْ شَاءَ لَمْ يَجْلِسْ يَقْضِى وَهُوَ لَا يُحْسِنُ يَقْضِى".
[Machine] "Three are in the fire, and one is in paradise. As for the two who are in the fire, one is a neighbor who intentionally lies, and the other is a man who made a mistake in his opinion. But as for the one in paradise, he is a man who made an effort in his opinion and was correct. I then asked Abu Al-A'laiah, 'What is the matter with the one who made an effort in his opinion and was wrong?' He said, 'If he wanted, he would not have sat down to judge without being competent in judging.' The Sheikh, may Allah have mercy on him, said that the explanation of Abu Al-A'laiah on the one who does not judge competently is evidence that the report has reached someone who made an effort in his opinion, but is not qualified to do so. However, if he is qualified to make an effort in what permits ijtihad, his mistake is lifted by the judgment of the Prophet Muhammad ﷺ in the hadith of Amr ibn al-As and Abu Hurairah. And success is by Allah's guidance."
ثَلَاثَةٌ فَاثْنَانِ فِي النَّارِ وَوَاحِدٌ فِي الْجَنَّةِ فَأَمَّا اللَّذَانِ فِي النَّارِ فَرَجُلٌ جَارَ عَنِ الْحَقِّ مُتَعَمِّدًا وَرَجُلٌ اجْتَهَدَ رَأْيَهُ فَأَخْطَأَ وَأَمَّا الَّذِي فِي الْجَنَّةِ فَرَجُلٌ اجْتَهَدَ رَأْيَهُ فِي الْحَقِّ فَأَصَابَ قَالَ فَقُلْتُ لِأَبِي الْعَالِيَةِ مَا بَالُ هَذَا الَّذِي اجْتَهَدَ رَأْيَهُ فِي الْحَقِّ فَأَخْطَأَ؟ قَالَ لَوْ شَاءَ لَمْ يَجْلِسْ يَقْضِي وَهُوَ لَا يُحْسِنُ يَقْضِي قَالَ الشَّيْخُ رَحِمَهُ اللهُ تَفْسِيرُ أَبِي الْعَالِيَةِ عَلَى مَنْ لَمْ يُحْسِنْ يَقْضِي دَلِيلٌ عَلَى أَنَّ الْخَبَرَ وَرَدَ فِيمَنِ اجْتَهَدَ رَأْيَهُ وَهُوَ مِنْ غَيْرِ أَهْلِ الِاجْتِهَادِ فَإِنْ كَانَ مِنْ أَهْلِ الِاجْتِهَادِ فَأَخْطَأَ فِيمَا يَسُوغُ فِيهِ الِاجْتِهَادُ رُفِعَ عَنْهُ خَطَؤُهُ إِنْ شَاءَ اللهُ بِحُكْمِ النَّبِيِّ ﷺ فِي حَدِيثِ عَمْرِو بْنِ الْعَاصِ وَأَبِي هُرَيْرَةَ ؓ وَذَلِكَ يَرِدُ وَبِاللهِ التَّوْفِيقُ