The Messenger of Allah ﷺ said, "There is no one, rich or poor, who will not wish on the Day of Resurrection that he had been given only the bare sustenance in this world."
حدثنا يعلى حدثنا إسماعيل عن نفيع
قال رسول الله ﷺ ما من أحد غني ولا فقير إلا يود يوم القيامة أنه كان أوتي في الدنيا قوتا
Its isnad is daif because of Nafi as well, and the hadith is found in Ibn Majah 2/387, no. 4140, in the chapter on asceticism, contentment, and it was declared daif in al-Zawaid, and likewise Ibn Hajar declared it daif in al-Fath 11/275, as did Iraqi in his commentary on al-Ihya 2/232, and Munziri 4/170, and the hadith is on asceticism.