Abu Nuaym reported: Yahya ibn Mu’adh, may Allah have mercy on him, said, “Verily, the poor only become happier than the rich due to remembrance, for they are in the custody of Allah. Were the siege of poverty to be lifted, you would find few of them stand firm in remembrance.”
Source: Ḥilyat al-Awliyā’ 15048
عن أبي نعيم عن يحيى بن معاذ رحمه الله قَالَ إِنَّمَا صَارَ الْفُقَرَاءُ أَسْعَدَ عَلَى الذِّكْرِ مِنَ الأَغْنِيَاءِ لأَنَّهُمْ فِي حَبْسِ اللَّهِ ، وَلَوْ أُطْلِقُوا مِنْ حِصَارِ الْفَقْرِ لَوَجَدْتَ مَنْ ثَبَتَ مِنْهُمْ عَلَى الذِّكْرِ قَلِيلا
15048 حلية الأولياء لأبي نعيم