Sahih al-Bukhari, Book 94, Hadith 8 (In-Book) ⓘ
Narrated Anas: If I had not heard the Prophet saying, "You should not long for death," I would have longed (for it).
حَدَّثَنَا حَسَنُ بْنُ الرَّبِيعِ، حَدَّثَنَا أَبُو الأَحْوَصِ، عَنْ عَاصِمٍ، عَنِ النَّضْرِ بْنِ أَنَسٍ، قَالَ قَالَ أَنَسٌ ـ رضى الله عنه ـ لَوْلاَ أَنِّي سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ " لاَ تَتَمَنَّوُا الْمَوْتَ " لَتَمَنَّيْتُ.
also referenced under: Hadith 7233 (DarusSalam) & Volume 9, Book 90, Hadith 339 (USC-MSA)