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:5320a

Verily, Allah, the Exalted and Glorious, would say on the Day of Resurrection: O son of Adam, I was sick but you did not visit Me. He would say: O my Lord; how could I visit Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Didn't you know that such and such servant of Mine was sick but you did not visit him and were you not aware of this that if you had visited him, you would have found Me by him? O son of Adam, I asked food from you but you did not feed Me. He would say: My Lord, how could I feed Thee whereas Thou art the Lord of the worlds? He said: Didn't you know that such and such servant of Mine asked food from you but you did not feed him, and were you not aware that if you had fed him you would have found him by My side? (The Lord would again say: ) O son of Adam, I asked drink from you but you did not provide Me. He would say: My Lord, how could I provide Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Such and such of servant of Mine asked you for a drink but you did not provide him, and had you provided him drink you would have found him near Me. (Using translation from Muslim 2569)   

السيوطي:٥٣٢٠a

"إِن الله تَعَالى يَقولُ يَوْمَ القِيَامَة: يا ابْنَ آدَمَ مَرِضْتُ فَلَمْ تَعُدْنِى! ! قَال: يَارَب كيفَ أعُودُك، وأنتَ رب العالميني؟ قَال: أَمَا عَلِمْتَ أن عَبْدى فُلانًا مَرِضَ فَلَمْ تَعُدْهُ؟ أمَّا عَلمْتَ أنَّكَ لَوْ عُدتَهُ لَوَجدتَنِى عِنْدَهُ؟ يا ابْنَ آدَمَ اسْتطعَمتُكَ فَلَمْ تُطعمْنِى! ! قَال: يَا رَب، وكيف أطعِمُكَ وأنت ربّ العالمين؟ ! قَال: أمَّا عَلِمتَ أنهُ اسْتَطَعَمَكَ عَبْدِي فُلانٌ فَلَمْ تُطعِمْهُ؛ أمَّا عَلِمْتَ أنَّكَ لَوْ أطعَمْتَهُ لَوَجَدْتَ ذلكَ عِنَدِى؟ يا ابْنَ آدَمَ اسْتَسْقَيتُكَ فَلَمْ تَسْقِنِى؟ ! قال: يا رب كيفَ أسْقِيكَ وأنْتَ رب العَالمِينَ؟ قال استسقاكَ عَبْدِي فُلانٌ فَلَمْ تَسْقِهِ! ! أَمَا إِنكَ لَوْ سَقَيتَهُ وَجَدتَ ذَلِكَ عِنْدِي".  

[ك] الحاكم في المستدرك عن أبي هريرة

See similar narrations below:

Collected by Muslim, Ibn Ḥibbān

Hadith Qudsi: Visiting the sick and feeding the hungry earns closeness to Allah

muslim:2569Muḥammad b. Ḥātim b. Maymūn > Bahz > Ḥammād b. Salamah > Thābit > Abū Rāfiʿ > Abū Hurayrah

Verily, Allah, the Exalted and Glorious, would say on the Day of Resurrection: O son of Adam, I was sick but you did not visit Me. He would say: O my Lord; how could I visit Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Didn't you know that such and such servant of Mine was sick but you did not visit him and were you not aware of this that if you had visited him, you would have found Me by him? O son of Adam, I asked food from you but you did not feed Me. He would say: My Lord, how could I feed Thee whereas Thou art the Lord of the worlds? He said: Didn't you know that such and such servant of Mine asked food from you but you did not feed him, and were you not aware that if you had fed him you would have found him by My side? (The Lord would again say: ) O son of Adam, I asked drink from you but you did not provide Me. He would say: My Lord, how could I provide Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Such and such of servant of Mine asked you for a drink but you did not provide him, and had you provided him drink you would have found him near Me.  

مسلم:٢٥٦٩حَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمِ بْنِ مَيْمُونٍ حَدَّثَنَا بَهْزٌ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ عَنْ أَبِي رَافِعٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «إِنَّ اللَّهَ ﷻ يَقُولُ يَوْمَ الْقِيَامَةِ:

(يَا ابْنَ آدَمَ مَرِضْتُ فَلَمْ تَعُدْنِي! قَالَ: يَا رَبِّ كَيْفَ أَعُودُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ: أَمَا عَلِمْتَ أَنَّ عَبْدِي فُلاَنًا مَرِضَ فَلَمْ تَعُدْهُ؟ أَمَا عَلِمْتَ أَنَّكَ لَوْ عُدْتَهُ لَوَجَدْتَنِي عِنْدَهُ؟)

(يَا ابْنَ آدَمَ اسْتَطْعَمْتُكَ فَلَمْ تُطْعِمْنِي! قَالَ: يَا رَبِّ وَكَيْفَ أُطْعِمُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ: أَمَا عَلِمْتَ أَنَّهُ اسْتَطْعَمَكَ عَبْدِي فُلاَنٌ فَلَمْ تُطْعِمْهُ؟ أَمَا عَلِمْتَ أَنَّكَ لَوْ أَطْعَمْتَهُ لَوَجَدْتَ ذَلِكَ عِنْدِي؟)

(يَا ابْنَ آدَمَ اسْتَسْقَيْتُكَ فَلَمْ تَسْقِنِي! قَالَ: يَا رَبِّ كَيْفَ أَسْقِيكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ: اسْتَسْقَاكَ عَبْدِي فُلاَنٌ فَلَمْ تَسْقِهِ۔ أَمَا إِنَّكَ لَوْ سَقَيْتَهُ وَجَدْتَ ذَلِكَ عِنْدِي۔)  

ذِكْرُ الْخَبَرِ الدَّالِّ عَلَى أَنَّ هَذِهِ الْأَلْفَاظَ مِنْ هَذَا النَّوْعِ أُطْلِقَتْ بِأَلْفَاظِ التَّمْثِيلِ وَالتَّشْبِيهِ عَلَى حَسَبِ مَا يَتَعَارَفُهُ النَّاسُ فِيمَا بَيْنَهُمْ، دُونَ الْحُكْمِ عَلَى ظَوَاهِرِهَا

ibnhibban:269Muḥammad b. ʿUmar b. Muḥammad b. Yūsuf Binasā > al-Ḥasan b. Muḥammad b. al-Ṣabbāḥ > ʿAffān > Ḥammād b. Salamah > Thābit > Abū Rāfiʿ > Abū Hurayrah

Verily, Allah, the Exalted and Glorious, would say on the Day of Resurrection: O son of Adam, I was sick but you did not visit Me. He would say: O my Lord; how could I visit Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Didn't you know that such and such servant of Mine was sick but you did not visit him and were you not aware of this that if you had visited him, you would have found Me by him? O son of Adam, I asked food from you but you did not feed Me. He would say: My Lord, how could I feed Thee whereas Thou art the Lord of the worlds? He said: Didn't you know that such and such servant of Mine asked food from you but you did not feed him, and were you not aware that if you had fed him you would have found him by My side? (The Lord would again say: ) O son of Adam, I asked drink from you but you did not provide Me. He would say: My Lord, how could I provide Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Such and such of servant of Mine asked you for a drink but you did not provide him, and had you provided him drink you would have found him near Me. (Using translation from Muslim 2569)   

ابن حبّان:٢٦٩أَخْبَرَنَا مُحَمَّدُ بْنُ عُمَرَ بْنِ مُحَمَّدِ بْنِ يُوسُفَ بِنَسَا قَالَ حَدَّثَنَا الْحَسَنُ بْنُ مُحَمَّدِ بْنِ الصَّبَّاحِ قَالَ حَدَّثَنَا عَفَّانُ قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ قَالَ أَخْبَرَنَا ثَابِتٌ عَنْ أَبِي رَافِعٍ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ «يَقُولُ اللَّهُ جَلَّ وَعَلَا لِلْعَبْدِ يَوْمَ الْقِيَامَةِ يَا ابْنَ آدَمَ مَرِضْتُ فَلَمْ تَعُدْنِي فَيَقُولُ يَا رَبِّ وَكَيْفَ أَعُودُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ فَيَقُولُ أَمَا عَلِمْتَ أَنَّ عَبْدِي فُلَانًا مَرِضَ فَلَمْ تَعُدْهُ أَمَا عَلِمْتَ أَنَّكَ لَوْ عُدْتَهُ لَوَجَدْتَنِي؟ وَيَقُولُ يَا ابْنَ آدَمَ اسْتَسْقَيْتُكَ فَلَمْ تَسْقِنِي فَيَقُولُ يَا رَبِّ كَيْفَ أَسْقِيكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ فَيَقُولُ أَمَا عَلِمْتَ أَنَّكَ لَوْ سَقَيْتَهُ لَوَجَدْتَ ذَلِكَ عِنْدِي؟ يَا ابْنَ آدَمَ اسْتَطْعَمْتُكَ فَلَمْ تُطْعِمْنِي فَيَقُولُ يَا رَبِّ وَكَيْفَ أُطْعِمُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ فَيَقُولُ أَلَمْ تَعْلَمْ أَنَّ عَبْدِي فُلَانًا اسْتَطْعَمَكَ فَلَمْ تُطْعِمْهُ؟ أَمَا إِنَّكَ لَوْ أَطْعَمْتَهُ وَجَدْتَ ذَلِكَ عِنْدِي»  

ذِكْرُ الْإِخْبَارِ عَنْ سُؤَالِ الرَّبِّ عَبْدَهُ فِي الْقِيَامَةِ عَنْ بَذْلِهِ الْمَأْكُولَ وَالْمَشْرُوبَ لِلنَّاسِ فِي الدُّنْيَا

ibnhibban:7366ʿAbdullāh b. Muḥammad al-Azdī > Isḥāq b. Ibrāhīm > al-Naḍr b. Shumayl > Ḥammād b. Salamah > Thābit al-Bunānī > Abū Rāfiʿ > Abū Hurayrah

Verily, Allah, the Exalted and Glorious, would say on the Day of Resurrection: O son of Adam, I was sick but you did not visit Me. He would say: O my Lord; how could I visit Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Didn't you know that such and such servant of Mine was sick but you did not visit him and were you not aware of this that if you had visited him, you would have found Me by him? O son of Adam, I asked food from you but you did not feed Me. He would say: My Lord, how could I feed Thee whereas Thou art the Lord of the worlds? He said: Didn't you know that such and such servant of Mine asked food from you but you did not feed him, and were you not aware that if you had fed him you would have found him by My side? (The Lord would again say: ) O son of Adam, I asked drink from you but you did not provide Me. He would say: My Lord, how could I provide Thee whereas Thou art the Lord of the worlds? Thereupon He would say: Such and such of servant of Mine asked you for a drink but you did not provide him, and had you provided him drink you would have found him near Me. (Using translation from Muslim 2569)   

ابن حبّان:٧٣٦٦أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ الْأَزْدِيُّ قَالَ حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ قَالَ أَخْبَرَنَا النَّضْرُ بْنُ شُمَيْلٍ قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ الْبُنَانِيِّ عَنْ أَبِي رَافِعٍ عَنْ أَبِي هُرَيْرَةَ

عَنْ رَسُولِ اللَّهِ ﷺ قَالَ «يَقُولُ اللَّهُ جَلَّ وَعَلَا يَا ابْنَ آدَمَ اسْتَطْعَمْتُكَ فَلَمْ تُطْعِمْنِي قَالَ فَيَقُولُ يَا رَبِّ وَكَيْفَ اسْتَطْعَمْتَنِي وَلَمْ أُطْعِمْكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ أَمَا عَلِمْتَ أَنَّ عَبْدِي فُلَانًا اسْتَطْعَمَكَ فَلَمْ تُطْعِمْهُ؟ أَمَا عَلِمْتَ أَنَّكَ لَوْ أَطْعَمْتَهُ لَوَجَدْتَ ذَلِكَ عِنْدِي؟ يَا ابْنَ آدَمَ اسْتَسْقَيْتُكَ فَلَمْ تَسْقِنِي فَيَقُولُ يَا رَبِّ وَكَيْفَ أَسْقِيكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ فَقَالَ أَمَا عَلِمْتَ أَنَّ عَبْدِيَ فُلَانًا اسْتَسْقَاكَ فَلَمْ تَسْقِهِ؟ أَمَا عَلِمْتَ أَنَّ عَبْدِيَ فُلَانًا لَوْ سَقَيْتَهُ لَوَجَدْتَ ذَلِكَ عِنْدِي؟ يَا ابْنَ آدَمَ مَرِضْتُ فَلَمْ تَعُدْنِي فَيَقُولُ يَا رَبِّ وَكَيْفَ أَعُودُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ فَقَالَ أَمَا عَلِمْتَ أَنَّ عَبْدِيَ فُلَانًا مَرِضَ فَلَوْ كُنْتَ عُدْتَهُ لَوَجَدْتَ ذَلِكَ عِنْدِي»