صحيح البخاري Sahih Bukhari كتاب العلم The Book of Knowledge
بَابُ الاِغْتِبَاطِ فِي الْعِلْمِ وَالْحِكْمَةِ:

(15) Chapter. Wish to be like the one who has knowledge and Al-Hikmah [wisdom i.e., the knowledge of the Quran and the Sunna (legal ways) of the Prophet ﷺ].

1 hadith
Hadith 73
حَدَّثَنَا الْحُمَيْدِيُّ ، قَالَ : حَدَّثَنَا سُفْيَانُ ، قَالَ : حَدَّثَنِي إِسْمَاعِيلُ بْنُ أَبِي خَالِدٍ عَلَى غَيْرِ مَا حَدَّثَنَاهُ الزُّهْرِيُّ ، قَالَ : سَمِعْتُ قَيْسَ بْنَ أَبِي حَازِمٍ ، قَالَ : سَمِعْتُ عَبْدَ اللَّهِ بْنَ مَسْعُودٍ ، قَالَ : قَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " لَا حَسَدَ إِلَّا فِي اثْنَتَيْنِ ، رَجُلٌ آتَاهُ اللَّهُ مَالًا فَسُلِّطَ عَلَى هَلَكَتِهِ فِي الْحَقِّ ، وَرَجُلٌ آتَاهُ اللَّهُ الْحِكْمَةَ فَهُوَ يَقْضِي بِهَا وَيُعَلِّمُهَا " .
Narrated `Abdullah bin Mas`ud: The Prophet said, "Do not wish to be like anyone except in two cases. (The first is) A person, whom Allah has given wealth and he spends it righteously; (the second is) the one whom Allah has given wisdom (the Holy Qur'an) and he acts according to it and teaches it to others." (Fath-al-Bari page 177 Vol. 1)
Hadith Reference Sahih Bukhari / The Book of Knowledge / Hadith: 73
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة