Sahih al-Bukhari 5025
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لاَ حَسَدَ إِلاَّ عَلَى اثْنَتَيْنِ، رَجُلٌ آتَاهُ اللَّهُ الْكِتَابَ وَقَامَ بِهِ آنَاءَ اللَّيْلِ، وَرَجُلٌ أَعْطَاهُ اللَّهُ مَالاً فَهْوَ يَتَصَدَّقُ بِهِ آنَاءَ اللَّيْلِ وَالنَّهَارِ "
Narrated `Abdullah bin `Umar:
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 Book and he recites it during the hours of the night, and a man whom Allah has given wealth, and he spends it in charity during the night and the hours of the day."
Full reference and source
Sahih al-Bukhari 5025 In-book : Book 66, Hadith 47 USC-MSA web (English) : Vol. 6, Book 61, Hadith 543 (deprecated)
View source on Sunnah.com (opens in a new tab)