"There are three things for which I swear and narrate to you about, so remember it." He said: "The wealth of a slave (of Allah) shall not be decreased by charity, no slave (of Allah) suffers injustice and is patient with it except that Allah adds to his honor; no slave (of Allah) opens up a door to begging except that Allah opens a door for him to poverty"- or a statement similar- "And I shall narrate to you a narration, so remember it." He said: "The world is only for four persons: A slave whom Allah provides with wealth and knowledge, so he has Taqwa of his Lord with it, nurtures the ties of kinship with it, and he knows that Allah has a right in it. So this is the most virtuous rank. And a slave whom Allah provides with knowledge, but He does not provide with wealth. So he has a truthful intent, saying: 'If I had wealth, then I would do the deeds of so-and-so with it.' He has his intention, so their rewards are the same. And a slave whom Allah provides with wealth, but He does not provide him with knowledge. [So he] spends his wealth rashly without knowledge, nor having Taqwa of his Lord, nor nurturing the ties of kinship, and he does not know that Allah has a right in it. So this is the most despicable rank. And a slave whom Allah does not provide with wealth nor knowledge, so he says: 'If I had wealth, then I would do the deeds of so-and-so with it.' He has his intention, so their sin is the same." (Using translation from Tirmidhī 2325)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ ثَلَاثٌ أُقْسِمُ عَلَيْهِنَّ وَأُحَدِّثُكُمْ حَدِيثًا فَاحْفَظُوهُ قَالَ فَأَمَّا الثَّلَاثُ الَّتِي أُقْسِمُ عَلَيْهِنَّ فَإِنَّهُ مَا نَقَّصَ مَالَ عَبْدٍ صَدَقَةٌ ولاوَلَا ظُلِمَ عَبْدٌ بِمَظْلَمَةٍ فَيَصْبِرُ عَلَيْهَا إِلَّا زَادَهُ اللهُ بِهَا عِزًّا وَلَا يَفْتَحُ عَبْدٌ بَابَ مَسْأَلَةٍ إِلَّا فَتَحَ اللهُ لَهُ بَابَ فَقْرٍ وَأَمَّا الَّذِي أُحَدِّثُكُمْ حَدِيثًا فَاحْفَظُوهُ فَإِنَّهُ قَالَ إِنَّمَا الدُّنْيَا لِأَرْبَعَةِ نَفَرٍ عَبْدٌ رَزَقَهُ اللهُ مَالًا وَعِلْمًا فَهُوَ يَتَّقِي فِيهِ رَبَّهُ وَيَصِلُ فِيهِ رَحِمَهُ وَيَعْلَمُ لِلَّهِ فِيهِ حَقَّهُ قَالَ فَهَذَا بِأَفْضَلِ الْمَنَازِلِ قَالَ وَعَبْدٌ رَزَقَهُ اللهُ عِلْمًا وَلَمْ يَرْزُقْهُ مَالًا؟ قَالَ فَهُوَ يَقُولُ لَوْ كَانَ لِي مَالٌ عَمِلْتُ بِعَمَلِ فُلَانٍ قَالَ فَأَجْرُهُمَا سَوَاءٌ قَالَ وَعَبْدٌ رَزَقَهُ اللهُ مَالًا وَلَمْ يَرْزُقْهُ عِلْمًا فَهُوَ يَخْبِطُ فِي مَالِهِ بِغَيْرِ عِلْمٍ لَا يَتَّقِي فِيهِ رَبَّهُ وَلَا يَصِلُ فِيهِ رَحِمَهُ وَلَا يَعْلَمُ لِلَّهِ فِيهِ حَقَّهُ فَهَذَا بِأَخْبَثِ الْمَنَازِلِ قَالَ وَعَبْدٌ لَمْ يَرْزُقْهُ اللهُ مَالًا وَلَا عِلْمًا فَهُوَ يَقُولُ لَوْ كَانَ لِي مَالٌ لَعَمِلْتُ بِعَمَلِ فُلَانٍ قَالَ هِيَ نِيَّتُهُ فَوِزْرُهُمَا فِيهِ سَوَاءٌ