Sunan al-Darimi 177
أَخْبَرَنَا سَعِيدُ بْنُ عَامِرٍ، عَنْ هِشَامٍ، عَنْ مُحَمَّدٍ، عَنْ حُذَيْفَةَ ﵁، قَالَ: " إِنَّمَا يُفْتِي النَّاسَ ثَلَاثَةٌ: رَجُلٌ إِمَامٌ أَوْ وَالٍ، وَرَجُلٌ يَعْلَمُ نَاسِخَ الْقُرْآنِ مِنَ الْمَنْسُوخِ - قَالُوا: يَا حُذَيْفَةُ، مِنْ ذَاكَ؟ قَالَ عُمَرُ بْنُ الْخَطَّابِ - أَوْ أَحْمَقُ مُتَكَلِّفٌ "
Saʿid ibn ʿAmir informed us, from Hisham, from Muhammad, from Hudhayfah, may Allah be pleased with him, who said: "Only three give fatwas to people: a man who is an imam or governor; a man who knows the abrogating of the Quran from the abrogated" (they said: "O Hudhayfah, who is that?" He said: "ʿUmar ibn al-Khattab"); "or a foolish pretender."