The Messenger of Allah ﷺ said, "Whoever is struck by poverty and brings his need before people, his poverty will not be relieved. But whoever brings his need before Allah, Allah will soon grant him sufficiency, either through a swift death or a swift enrichment."
قال رسول الله ﷺ: من أصابته فاقة فأنزلها بالناس لم تسد فاقته، ومن أنزلها بالله أوشك الله له بالغنى إما بموت عاجل أو غنى عاجل.
Abu Dawud (1645) and Tirmidhi (2327) both narrated it through the route of Bashir bin Salman, from Sayyar Abu Hamza, from Tariq, from Ibn Masud, who said, then he mentioned it. Its chain is hasan because of Sayyar Abu Hamza. The discussion of it is given in detail in the book on zakat.