Abu Hurairah narrated that the Messenger of Allah(s.a.w) said: "Indeed Allah, Most High said: 'O son of Adam! Devote yourself to My worship, I will fill your chest with riches and alleviate your poverty. And if you do not do so, then I will fill your hands with problems and not alleviate your poverty.'"
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا عَلِيُّ بْنُ خَشْرَمٍ، أَخْبَرَنَا عِيسَى بْنُ يُونُسَ، عَنْ عِمْرَانَ بْنِ زَائِدَةَ بْنِ نَشِيطٍ، عَنْ أَبِيهِ، عَنْ أَبِي خَالِدٍ الْوَالِبِيِّ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " إِنَّ اللَّهَ تَعَالَى يَقُولُ يَا ابْنَ آدَمَ تَفَرَّغْ لِعِبَادَتِي أَمْلأْ صَدْرَكَ غِنًى وَأَسُدَّ فَقْرَكَ وَإِلاَّ تَفْعَلْ مَلأْتُ يَدَيْكَ شُغْلاً وَلَمْ أَسُدَّ فَقْرَكَ " . قَالَ هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ . وَأَبُو خَالِدٍ الْوَالِبِيُّ اسْمُهُ هُرْمُزُ .
sunnah.com