Al-Ghazali reported: Umar, may Allah be pleased with him, said, “Let not one of you refrain from working for his provision, supplicating to Allah to provide while he knows that the sky does not rain gold and silver.”
Source: Iḥyā’ Ulūm al-Dīn 2/62
عن الغزالي قَالَ عمر رَضِيَ اللَّهُ عَنْهُ لَا يَقْعُدُ أَحَدُكُمْ عَنْ طَلَبِ الرِّزْقِ وَيَقُولُ اللَّهُمَّ ارْزُقْنِي فَقَدْ عَلِمْتُمْ أَنَّ السَّمَاءَ لَا تُمْطِرُ ذَهَبًا وَلَا فِضَّةً
2/62 إحياء علوم الدين