Mishkat al-Masabih 1528
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِن الله عز وَجل يَقُولُ يَوْمَ الْقِيَامَةِ: يَا ابْنَ آدَمَ مَرِضْتُ فَلَمْ تَعُدْنِي قَالَ: يَا رَبِّ كَيْفَ أَعُودُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ: أَمَّا عَلِمْتَ أَنَّ عَبْدِي فُلَانًا مَرِضَ فَلَمْ تَعُدْهُ؟ أَمَا عَلِمْتَ أَنَّكَ لَوْ عُدْتَهُ لَوَجَدْتَنِي عِنْدَهُ؟ يَا ابْنَ آدَمَ اسْتَطْعَمْتُكَ فَلَمْ تُطْعِمْنِي قَالَ: يَا رَبِّ كَيْفَ أُطْعِمُكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ: أَمَا عَلِمْتَ أَنَّهُ اسْتَطْعَمَكَ عَبْدِي فُلَانٌ فَلَمْ تُطْعِمْهُ؟ أَمَا عَلِمْتَ أَنَّكَ لَوْ أَطْعَمْتَهُ لَوَجَدْتَ ذَلِكَ عِنْدِي؟ يَا ابْنَ آدَمَ اسْتَسْقَيْتُكَ فَلَمْ تَسْقِنِي قَالَ: يَا رَبِّ كَيْفَ أَسْقِيكَ وَأَنْتَ رَبُّ الْعَالَمِينَ؟ قَالَ: اسْتَسْقَاكَ عَبْدِي فُلَانٌ فَلَمْ تَسْقِهِ أما إِنَّك لَو سقيته لوجدت ذَلِك عِنْدِي . رَوَاهُ مُسلم
From Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "Allah, Mighty and Majestic, will say on the Day of Resurrection: 'O son of Adam, I was ill and you did not visit Me.' He will say: 'O Lord, how could I visit You when You are the Lord of the worlds?' He will say: 'Did you not know that My servant so-and-so was ill and you did not visit him? Did you not know that if you had visited him, you would have found Me with him? O son of Adam, I asked you for food and you did not feed Me.' He will say: 'O Lord, how could I feed You when You are the Lord of the worlds?' He will say: 'Did you not know that My servant so-and-so asked you for food and you did not feed him? Did you not know that if you had fed him, you would have found that with Me? O son of Adam, I asked you for drink and you did not give Me drink.' He will say: 'O Lord, how could I give You drink when You are the Lord of the worlds?' He will say: 'My servant so-and-so asked you for drink and you did not give him drink. Had you given him drink, you would have found that with Me.'" Reported by Muslim.