Sure Az-Zumar

39:52

أَوَلَمْ يَعْلَمُوٓا۟ أَنَّ ٱللَّهَ يَبْسُطُ ٱلرِّزْقَ لِمَن يَشَآءُ وَيَقْدِرُ ۚ إِنَّ فِى ذَٰلِكَ لَءَايَٰتٍۢ لِّقَوْمٍۢ يُؤْمِنُونَ

Wissen sie denn nicht, daß Allah die Versorgung großzügig gewährt, wem Er will, und auch bemißt? Darin sind wahrlich Zeichen für Leute, die glauben.

Tafsir 39:52

Do these idolaters say this and not know that Allah expands the provision for whoever He wills as a test for him: Is he grateful or ungrateful? And he narrows it for whoever he wills as a test for him: Is he patient or does he become angry with Allah’s decree. In what has been mentioned, about the expansion and narrowing of provision, there are indications of Allah’s planning for a people who believe, because they are the ones who benefit from such indications. The disbelievers on the other hand pass by them without paying any attention to them.