(5) باب تَمَنِّي الْقُرْآنِ وَالْعِلْمِ
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "Not to wish to be the like except of two men. A man whom Allah has given the (knowledge of the) Qur'an and he recites it during the hours of night and day and the one who wishes says: If I were given the same as this (man) has been given, I would do what he does, and a man whom Allah has given wealth and he spends it in the just and right way, in which case the one who wishes says, 'If I were given the same as he has been given, I would do what he does.' " (See Hadith 5025 and 5026)
Reference: Sahih al-Bukhari 7232
In-book reference: Book 94, Hadith 7
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 90, Hadith 338