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.
nasai-kubra:8480al-Qāsim b. Zakariyyā b. Dīnār > ʿAlī > Jaʿfar al-Aḥmar > Yazīd b. Abū Ziyād > ʿAbdullāh b. al-Ḥārith > ʿAlī

[Machine] I was in pain, so I went to the Prophet ﷺ and he allowed me to stay in his place. He stood up to pray and threw a part of his garment on me. Then he said, "Get up, O Ali, you have been healed, there is no harm upon you. I have not supplicated for myself without supplicating for you the same, and I have not asked for anything without being granted it, except that it was said to me that there is no prophet after you."  

الكبرى للنسائي:٨٤٨٠أَخْبَرَنَا الْقَاسِمُ بْنُ زَكَرِيَّا بْنِ دِينَارٍ قَالَ حَدَّثَنَا عَلِيٌّ قَالَ حَدَّثَنَا جَعْفَرٌ الْأَحْمَرُ عَنْ يَزِيدَ بْنِ أَبِي زِيَادٍ عَنْ عَبْدِ اللهِ بْنِ الْحَارِثِ عَنْ عَلِيٍّ قَالَ

وُجِعْتُ وَجَعًا فَأَتَيْتُ النَّبِيَّ ﷺ فَأَقَامَنِي فِي مَكَانِهِ وَقَامَ يُصَلِّي وَأَلْقَى عَلَيَّ طَرَفَ ثَوْبِهِ ثُمَّ قَالَ «قُمْ يَا عَلِيُّ قَدْ بَرِئْتَ لَا بَأْسَ عَلَيْكَ وَمَا دَعَوْتُ لِنَفْسِي بِشَيْءٍ إِلَّا دَعَوْتُ لَكَ مِثْلَهُ وَمَا دَعَوْتُ بِشَيْءٍ إِلَّا قَدِ اسْتُجِيبَ لِي» أَوْ قَالَ أُعْطِيتُ إِلَّا أَنَّهُ قِيلَ لِي لَا نَبِيَّ بَعْدَكَ  


See similar narrations below:

Collected by Suyūṭī
suyuti:4-643bʿLá
Request/Fix translation

  

السيوطي:٤-٦٤٣b

"عن على قال: وَجعْتُ وَجَعًا فَأَتَيْتُ النَّبِىَّ ﷺ فَأَقَامَنِى فِى مَكَانِهِ وقَامَ يُصَلِّى وَأَلْقَى علَى طَرَفَ ثَوْبِهِ ثُمَّ قَالَ: قَدْ بَرِئْتَ يَا ابْنَ أَبِى طَالِبٍ، فَلَا بَأسَ عَلَيكَ، مَا سَألْتُ اللهَ لِىَ شَيْئًا إِلَّا سَألْتُ لَكَ مِثْلَهُ، وَلَا سَأَلْتُ اللهَ شَيْئًا إِلَّا أَعْطَانيهِ، غَير أَنِّى قِيلَ لِى: إِنَّهُ لَا نَبِىَّ بَعْدَكَ. فَقُمْتُ كَأَنِّى مَا اشْتَكَيْتُ".  

ابن أبى عاصم، وابن جرير وصححه، [طس] الطبرانى في الأوسط وابن شاهين في السنة