Sahih Muslim 2878
Sahih Muslim · Book 53: The Book of Paradise, its Description, its Bounties and its Inhabitants · The Command To Think Positively Of Allah At The Time Of Death
حَدَّثَنَا أَبُو بَكْرِ بْنُ نَافِعٍ ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ ، عَنْ سُفْيَانَ ، عَنِ الأَعْمَشِ ، بِهَذَا الإِسْنَادِ . مِثْلَهُ وَقَالَ عَنِ النَّبِيِّ صلى الله عليه وسلم وَلَمْ يَقُلْ سَمِعْتُ .
This hadith has been transmitted on the authority of A'mash but with a slight variation of wording.