It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet of Allah (peace and blessings be upon him) said: "Trials will appear and 'harj' will become widespread." We said: "O Messenger of Allah (peace and blessings be upon him), what is harj?" He (peace and blessings be upon him) said: "Killing and bloodshed, killing and bloodshed; and knowledge will be taken away (from the world)." The narrator said: Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) heard this while he (Sayyiduna Abu Hurayrah (may Allah be pleased with him)) was narrating it from the Prophet of Allah (peace and blessings be upon him), and he said: "Know that the taking away of knowledge is not something that will be pulled out of the breasts of men; rather it will (happen) through the death of the scholars."
I say: Apart from the account about knowledge, this hadith is in the Sahih.
And Imam Ahmad bin Hanbal (may Allah have mercy on him) mentioned it likewise in his Musnad, through Waki' (may Allah have mercy on him) from Ja'far bin Burqan (may Allah have mercy on him).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 392
Hadith Gradingمحدثین:إسناده صحيح، وقصة تفسير قبض العلم موقوفة على عمر بن الخطاب
It is narrated from Sayyiduna Abdullah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Learn the Qur'an and teach it to the people; acquire knowledge and teach it to the people; and learn the fara'id (the rules of inheritance) and teach them to the people. For I am a man who will (soon) be taken away (from this world), and knowledge too will soon be taken away, until two men will differ over a matter of inheritance and will find no one who can inform them (of its truth)."
I say: Abu Dawud al-Tayalisi, Ibn Abi Umar and al-Nasa'i in al-Kubra recorded it, and al-Hakim recorded it in al-Mustadrak and declared it sahih (authentic); al-Bayhaqi also recorded it. This report will come later with its various chains in the chapters of the Virtues of the Qur'an and of the Fara'id (Inheritance). The hadith also has a shahid (supporting narration) from the narration of Sayyiduna Abu Hurayrah (may Allah be pleased with him), recorded by al-Tirmidhi, Ibn Majah, al-Daraqutni, al-Hakim and al-Bayhaqi, while Imam Abu Dawud recorded it in his Sunan from the hadith of Sayyiduna Abdullah bin Amr (may Allah be pleased with them both).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 393
Hadith Gradingمحدثین:إسناده ضعيف؛ لجهالة سليمان بن جابر واضطراب الرواية عنه، وله شواهد لا تخلو من مقال