It was narrated that 'Abdullah bin 'Amr said:
"The Messenger of Allah (ﷺ) said: 'Knowledge is based on three things, and anything beyond that is superfluous: a clear Verse, an established Sunnah, or the rulings by which the inheritance is divided fairly.'" (ES)
English reference (ES): Vol. 1, Book 1, Hadith 54 (ES)
Arabic reference (ES): Book 1, Hadith 56 (ES)