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.
suyuti:1a

The Messenger of Allah ﷺ said: I will come to the gate of Paradise on the Day of Resurrection. and would seek its opening. and the keeper would say: Who art thou? I would say: Muhammad. He would then say: It is for thee that I have been ordered, and not to open it for anyone before thee. (Using translation from Muslim 197)   

السيوطي:١a

" آتىِ بَابَ الجَّنةِ يومَ القِيَامةِ فَأسْتَفْتِحُ فيقولُ الخازنُ: مَنْ أنْتَ؟ فَأَقولُ: مُحَمَّدٌ فَيَقولُ: بِكَ أُمِرْتُ أَنْ لا أفْتَحَ لأَحَدٍ قْبَلَكَ" .  

[حم] أحمد وعبد بن حميد، [م] مسلم عن أنس صح

See similar narrations below:

Collected by Muslim, Aḥmad
muslim:197ʿAmr al-Nāqid And Zuhayr b. Ḥarb > Hāshim b. al-Qāsim > Sulaymān b. al-Mughīrah > Thābit > Anas b. Mālik

The Messenger of Allah ﷺ said: I will come to the gate of Paradise on the Day of Resurrection. and would seek its opening. and the keeper would say: Who art thou? I would say: Muhammad. He would then say: It is for thee that I have been ordered, and not to open it for anyone before thee.  

مسلم:١٩٧وَحَدَّثَنِي عَمْرٌو النَّاقِدُ وَزُهَيْرُ بْنُ حَرْبٍ قَالاَ حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ حَدَّثَنَا سُلَيْمَانُ بْنُ الْمُغِيرَةِ عَنْ ثَابِتٍ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ آتِي بَابَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ فَأَسْتَفْتِحُ فَيَقُولُ الْخَازِنُ مَنْ أَنْتَ فَأَقُولُ مُحَمَّدٌ فَيَقُولُ بِكَ أُمِرْتُ لاَ أَفْتَحُ لأَحَدٍ قَبْلَكَ  

ahmad:12397Hāshim > Sulaymān > Thābit > Anas b. Mālik

[Machine] The Messenger of Allah ﷺ said, "I will come to the gate of Paradise on the Day of Judgment and seek to enter. The gatekeeper will ask, 'Who are you?' I will respond, 'Muhammad.' He will then say, 'I have been commanded not to open the gate for anyone before you.'"  

أحمد:١٢٣٩٧حَدَّثَنَا هَاشِمٌ حَدَّثَنَا سُلَيْمَانُ عَنْ ثَابِتٍ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ آتِي بَابَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ فَأَسْتَفْتِحُ فَيَقُولُ الْخَازِنُ مَنْ أَنْتَ؟ قَالَ فَأَقُولُ مُحَمَّدٌ قَالَ يَقُولُ بِكَ أُمِرْتُ أَنْ لَا أَفْتَحَ لِأَحَدٍ قَبْلَكَ