Mishkat al-Masabih 279
وَعَنِ ابْنِ مَسْعُودٍ قَالَ: قَالَ لِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «تَعَلَّمُوا الْعِلْمَ وَعَلِّمُوهُ النَّاسَ تَعَلَّمُوا الْفَرَائِضَ وَعَلِّمُوهَا النَّاسَ تَعَلَّمُوا الْقُرْآنَ وَعَلِّمُوهُ النَّاسَ فَإِنِّي امْرُؤٌ مَقْبُوضٌ وَالْعِلْمُ سَيُقْبَضُ وَتَظْهَرُ الْفِتَنُ حَتَّى يَخْتَلِفَ اثْنَانِ فِي فَرِيضَةٍ لَا يَجِدَانِ أَحَدًا يَفْصِلُ بَيْنَهُمَا» . رَوَاهُ الدَّارِمِيُّ وَالدَّارَقُطْنِيّ
From Ibn Masʿud, who said: The Messenger of Allah ﷺ said to me: "Learn knowledge and teach it to the people; learn the laws of inheritance and teach them to the people; learn the Quran and teach it to the people. For I am a man who will be taken, and knowledge will be taken away, and tribulations will appear, until two men differ over an obligation and do not find anyone to judge between them." Reported by ad-Darimi and ad-Daraqutni.