(Abu)Khalid Al-Walibi narrated from Abu Hurairah and he (one of thenarrators) said:
"I do not know except that he attributed it to theProphet (ﷺ)" – "Allah says: 'O son of Adam, devote yourselfto Myworship, and I will fill your heart with contentment and takecare ofyour poverty; but if you do not do that, then I will fillyour heartwith worldly concerns and will not take care of yourpoverty.'"
English reference: Vol. 5, Book 37, Hadith 4107
Arabic reference: Book 37, Hadith 4246