Hadithcore
Sahih Muslim, 197
sahih

Anas b. Malik reported:

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 are you? I would say: Muhammad. He would then say: It is for you that I have been ordered, and not to open it for anyone before you.

وَحَدَّثَنِي عَمْرٌو النَّاقِدُ، وَزُهَيْرُ بْنُ حَرْبٍ، قَالاَ حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ، حَدَّثَنَا سُلَيْمَانُ بْنُ الْمُغِيرَةِ، عَنْ ثَابِتٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

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

‏ ‏.‏

References2 variants
In-Book Reference
Book 1, Hadith 392
USC-MSA web (English) reference
Book 1, Hadith 384 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet (ﷺ) has great virtues. He is the master of Prophet Adam’s sons. Allah has sent him to all people, including Jews and Christians. It is obligatory for anyone to believe his prophethood and message. In this hadith, he mentioned that he would knock at Paradise’s gate on the day of Judgement and ask to get in. The keeper asked him about his identity. The Prophet (ﷺ) answered, “Muhammad.” He answers with his proper name that people and angels know. The keeper would say when hearing the Prophet’s name (ﷺ), “It is just you for whom I have been ordered to open before anyone else.” Thus, the Prophet informed us that he would be the first one to enter Paradise. This is a divine honor to our Prophet Muhammad (ﷺ) by giving him the priority of entering Paradise and even its highest levels..