Sunan Ibn Majah, Book 37, Hadith 4368 (In-Book)

It was narrated that Abu Kabshah Al-Anmari said: “The Messenger of Allah said: ‘The likeness of this nation is that of four people: A man to whom Allah gives wealth and knowledge, so he acts according to his knowledge with regard to his wealth, spending it as it should be spent; a man to whom Allah gives knowledge, but he does not give him wealth, so he says: “If I had been given (wealth) like this one, I would have done what (the first man) did.” The Messenger of Allah said: ‘They will be equal in reward. And a man to whom Allah gives wealth but does not give knowledge, so he squanders his wealth and spends it in inappropriate ways; and a man to whom Allah gives neither knowledge nor wealth, and he says: “If I had (wealth) like this one, I would do what (the third man) did.” The Messenger of Allah said: ‘They are equal in their burden (of sin).’”

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَعَلِيُّ بْنُ مُحَمَّدٍ، قَالاَ حَدَّثَنَا وَكِيعٌ، حَدَّثَنَا الأَعْمَشُ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ، عَنْ أَبِي كَبْشَةَ الأَنْمَارِيِّ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏:‏ ‏"‏ مَثَلُ هَذِهِ الأُمَّةِ كَمَثَلِ أَرْبَعَةِ نَفَرٍ ‏:‏ رَجُلٌ آتَاهُ اللَّهُ مَالاً وَعِلْمًا فَهُوَ يَعْمَلُ بِعِلْمِهِ فِي مَالِهِ يُنْفِقُهُ فِي حَقِّهِ وَرَجُلٌ آتَاهُ اللَّهُ عِلْمًا وَلَمْ يُؤْتِهِ مَالاً فَهُوَ يَقُولُ ‏:‏ لَوْ كَانَ لِي مِثْلُ هَذَا عَمِلْتُ فِيهِ مِثْلَ الَّذِي يَعْمَلُ ‏"‏ ‏.‏ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏:‏ ‏"‏ فَهُمَا فِي الأَجْرِ سَوَاءٌ وَرَجُلٌ آتَاهُ اللَّهُ مَالاً وَلَمْ يُؤْتِهِ عِلْمًا فَهُوَ يَخْبِطُ فِي مَالِهِ يُنْفِقُهُ فِي غَيْرِ حَقِّهِ وَرَجُلٌ لَمْ يُؤْتِهِ اللَّهُ عِلْمًا وَلاَ مَالاً فَهُوَ يَقُولُ ‏:‏ لَوْ كَانَ لِي مِثْلُ مَالِ هَذَا عَمِلْتُ فِيهِ مِثْلَ الَّذِي يَعْمَلُ ‏"‏ ‏.‏ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏:‏ ‏"‏ فَهُمَا فِي الْوِزْرِ سَوَاءٌ ‏"‏ ‏.‏

sunnah.com