Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “Seeking knowledge is an obligation upon every Muslim.”
Source: Sunan Ibn Mājah 224
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ طَلَبُ الْعِلْمِ فَرِيضَةٌ عَلَى كُلِّ مُسْلِمٍ
224 سنن ابن ماجه كتاب المقدمة باب فضل العلماء والحث على طلب العلم
3914 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع