It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) (when the narrator of the hadith, Amr bin Murrah, asked, Abdullah bin Salamah confirmed that he had heard these words from him more than fifty times) that he said: "Your Prophet (peace and blessings be upon him) was given the keys of the unseen except for the five mentioned in this verse: "Indeed, with Allah alone is the knowledge of the Hour" (to the end of the verse)." Likewise, Imam al-Humaydi narrated through Mis'ar from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that he said: "Your Prophet (peace and blessings be upon him) was given knowledge of everything except five things: "Indeed, with Allah alone is the knowledge of the Hour" (to the end of the verse)." Imam Abu Bakr bin Abi Shaybah, Ahmad bin Mani', Abu Ya'la al-Mawsili and Imam Ahmad bin Hanbal also narrated this hadith through various chains, among which the wording of Waki' is: "The keys of the unseen are five." It has a supporting narration (shahid) in the two Sahihs and elsewhere from the hadith of Sayyiduna Abu Hurayrah (may Allah be pleased with him). Also, Imam al-Bukhari narrated it from the hadith of Sayyiduna Ibn Umar (may Allah be pleased with them both), Imam Ahmad bin Hanbal in his Musnad from the hadith of Sayyiduna Buraydah (may Allah be pleased with him), Imam Abu Bakr bin Abi Shaybah in his Musnad through Rib'i bin Hirash (may Allah have mercy on him) from the hadith of a man of Banu Amir (which has passed in the Book of Manners, in the chapter "Sifat al-Isti'dhan"), and al-Harith bin Abi Usamah from the hadith of Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) (which has passed in the Book of Medicine, in the chapter "al-Nazar fi al-Nujum").
Hadith Takhrij«عبد الله بن سلمة المرادي: صدوق تغير حفظه (التقريب، من الحفظ)، وعمرو بن مرة سمع منه؛ وله شاهد في الصحيحين من حديث ابن عمر وأبي هريرة «مفاتيح الغيب خمس»»
It is narrated from Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) that he said: "When the Messenger of Allah (peace and blessings be upon him) ordered us to dig the Trench, during the digging a huge and hard rock appeared at one spot, on which the pickaxes had no effect. We complained of it to the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) came, and on seeing it he put aside his blessed garment, took hold of the pickaxe and said: 'Bismillah' (In the name of Allah). Then he (peace and blessings be upon him) struck one blow, which broke off a third of the rock, and he (peace and blessings be upon him) said: 'Allahu akbar' (Allah is the Greatest); I have been given the keys of al-Sham (Syria); by Allah, I can see its red palaces at this very moment. Then he (peace and blessings be upon him) struck a second blow, which cut off another third, and he (peace and blessings be upon him) said: 'Allahu akbar' (Allah is the Greatest); I have been given the keys of Persia; by Allah, I can see the white palace of al-Mada'in at this very moment. Then he (peace and blessings be upon him) struck a third blow and said: 'Bismillah' (In the name of Allah), and the rest of the stone was cut away, and he (peace and blessings be upon him) said: 'Allahu akbar' (Allah is the Greatest); I have been given the keys of Yemen; by Allah, I can see the gates of San'a' at this very moment." I say: Imam al-Nasa'i recorded this narration in his book "al-Siyar" through the chain of Muhammad bin Abd al-A'la, Mu'tamir and Awf.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لضعف ميمون أبي عبد الله البصري
Hadith Takhrij«ميمون أبو عبد الله البصري مولى ابن سمرة: ضعيف (التقريب). هوذة بن خليفة: صدوق، عوف الأعرابي: ثقة (من الحفظ).» «أخرجه مصنف ابن أبي شيبة برقم: 25»