Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:24996ʿAffān > Wuhayb > Khālid al-Ḥadhhāʾ > Muḥammad b. ʿAbbād > ʿĀʾishah

[Machine] I heard the Prophet ﷺ say in one Rak'ah of the night prayer, "There is no deity except You."  

أحمد:٢٤٩٩٦حَدَّثَنَا عَفَّانُ قَالَ حَدَّثَنَا وُهَيْبٌ قَالَ حَدَّثَنَا خَالِدٌ الْحَذَّاءُ عَنْ مُحَمَّدِ بْنِ عَبَّادٍ عَنْ عَائِشَةَ قَالَتْ

سَمِعْتُ النَّبِيَّ ﷺ يَقُولُ فِي رَكْعَةٍ مِنْ صَلَاةِ اللَّيْلِ لَا إِلَهَ إِلَّا أَنْتَ  


See similar narrations below:

Collected by Bukhārī
bukhari:7233Ḥasan b. al-Rabīʿ > Abū al-Aḥwaṣ > ʿĀṣim > al-Naḍr b. Anas > Anas Lawlā Annī

If I had not heard the Prophet ﷺ saying, "You should not long for death," I would have longed (for it).  

البخاري:٧٢٣٣حَدَّثَنَا حَسَنُ بْنُ الرَّبِيعِ حَدَّثَنَا أَبُو الأَحْوَصِ عَنْ عَاصِمٍ عَنِ النَّضْرِ بْنِ أَنَسٍ قَالَ قَالَ

أَنَسٌ ؓ لَوْلاَ أَنِّي سَمِعْتُ النَّبِيَّ ﷺ يَقُولُ لاَ تَتَمَنَّوُا الْمَوْتَ لَتَمَنَّيْتُ