“I do not know except that he attributed it to the Prophet (ﷺ)” – “Allah says: ‘O son of Adam, devote yourself to My worship, and I will fill your heart with contentment and take care of your poverty; but if you do not do that, then I will fill your heart with worldly concerns and will not take care of your poverty.’”
Sunan Ibn Majah Book 37, Hadith 8