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.
ahmad-zuhd:994ʿAbdullāh from my father > ʿAbd al-Ṣamad > Sallām > al-Ḥasan > Abū Hurayrah

[Machine] On the Day of Resurrection, Allah will say: "I had provided food for you, but you did not feed Me." If you had fed Me, then I would have fed you today. And I had given water to you, but you did not give Me water." If you had given Me water, then I would have given you water today.  

الزهد لأحمد:٩٩٤حَدَّثَنَا عَبْدُ اللَّهِ حَدَّثَنِي أَبِي حَدَّثَنَا عَبْدُ الصَّمَدِ حَدَّثَنَا سَلَّامُ حَدَّثَنَا الْحَسَنُ عَنْ أَبِي هُرَيْرَةَ قَالَ يَقُولُ

اللَّهُ ﷻ يَوْمَ الْقِيَامَةِ اسْتَطْعَمَكَ عَبْدِي فَلَمْ تُطْعِمْهُ أَمَا لَوْ أَنَّكَ كُنْتَ أَطْعَمْتَهُ لَأَطْعَمْتُكَ الْيَوْمَ وَاسْتَسْقَاكَ عَبْدِي فَلَمْ تَسْقِهِ أَمَا لَوْ كُنْتَ أَسْقَيْتَهُ لَأَسْقَيْتُكَ الْيَوْمَ