Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:4253Wakīʿ > Misʿar > ʿAmr b. Murrah > ʿAbdullāh b. Salamah > ʿAbdullāh

[Machine] Your Prophet ﷺ has been given everything except the keys of the unseen, the five of them. {Indeed, with Allah is knowledge of the Hour.} [Quran 31:34]  

أحمد:٤٢٥٣حَدَّثَنَا وَكِيعٌ حَدَّثَنَا مِسْعَرٌ عَنْ عَمْرِو بْنِ مُرَّةَ عَنْ عَبْدِ اللهِ بْنِ سَلَمَةَ عَنْ عَبْدِ اللهِ قَالَ

أُوتِيَ نَبِيُّكُمْ ﷺ كُلَّ شَيْءٍ إِلَّا مَفَاتِيحَ الْغَيْبِ الْخَمْسِ {إِنَّ اللهَ عِنْدَهُ عِلْمُ السَّاعَةِ} [لقمان 34]  


See similar narrations below:

Collected by Bukhārī, Suyūṭī
bukhari:4778Yaḥyá b. Sulaymān > Ibn Wahb > ʿUmar b. Muḥammad b. Zayd b. ʿAbdullāh b. ʿUmar from his father > ʿAbdullāh b. ʿUmar

The Prophet ﷺ said, "The keys of the Unseen are five." And then he recited: 'Verily, the knowledge of the Hour is with Allah (alone).' (31.34)  

البخاري:٤٧٧٨حَدَّثَنَا يَحْيَى بْنُ سُلَيْمَانَ قَالَ حَدَّثَنِي ابْنُ وَهْبٍ قَالَ حَدَّثَنِي عُمَرُ بْنُ مُحَمَّدِ بْنِ زَيْدِ بْنِ عَبْدِ اللَّهِ بْنِ عُمَرَ أَنَّ أَبَاهُ حَدَّثَهُ أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ ؓ قَالَ

قَالَ النَّبِيُّ ﷺ مَفَاتِيحُ الْغَيْبِ خَمْسٌ ثُمَّ قَرَأَ {إِنَّ اللَّهَ عِنْدَهُ عِلْمُ السَّاعَةِ}