Abdullah ibn Amr reported: The Messenger of Allah, peace and blessings be upon him, said, “Knowledge is three types and anything else is a surplus: a decisive verse, or an established Sunnah, or an obligation of justice.”
Source: Sunan Abī Dāwūd 2885
Grade: Sahih (authentic) according to Al-Suyuti
عَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ الْعِلْمُ ثَلَاثَةٌ وَمَا سِوَى ذَلِكَ فَهُوَ فَضْلٌ آيَةٌ مُحْكَمَةٌ أَوْ سُنَّةٌ قَائِمَةٌ أَوْ فَرِيضَةٌ عَادِلَةٌ
2885 سنن أبي داود كتاب الفرائض باب ما جاء في تعليم الفرائض
5691 المحدث السيوطي خلاصة حكم المحدث صحيح في الجامع الصغير