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

It wasnarrated that Abu Kabshah Al-Anmari said: “The Messenger ofAllah(PBUH) said: ‘The likeness of this nation is that of four people:Aman to whom Allah gives wealth and knowledge, so he acts accordingtohis knowledge with regard to his wealth, spending it as it shouldbespent; a man to whom Allah gives knowledge, but he does not givehimwealth, so he says: “If I had been given (wealth) like this one, Iwould have done what (the first man) did.” The Messenger of Allah(PBUH) said: ‘They will be equal in reward. And a man to whom Allahgives wealth but does not give knowledge, so he squanders his wealthand spends it in inappropriate ways; and a man to whom Allah givesneither knowledge nor wealth, and he says: “If I had (wealth) likethis one, I would do what (the third man) did.” The Messenger ofAllah(PBUH) said: ‘They are equal in their burden (of sin).’” Translation Not Available

Book Ref: Sunan Ibn Majah Book 37 Hadith 4228
Web Ref:  Sunan Ibn Majah Vol 5 Book 37 Hadith 4228