(1) باب فِي الْجَنَائِزِ وَمَنْ كَانَ آخِرُ كَلاَمِهِ لاَ إِلَهَ إِلاَّ اللَّهُ
Narrated Abu Dhar:
Allah's Messenger (ﷺ) said, "Someone came to me from my Lord and gave me the news (or good tidings) that if any of my followers dies worshipping none (in any way) along with Allah, he will enter Paradise." I asked, "Even if he committed illegal sexual intercourse (adultery) and theft?" He replied, "Even if he committed illegal sexual intercourse (adultery) and theft."
Reference: Sahih al-Bukhari 1237
In-book reference: Book 23, Hadith 1
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 23, Hadith 329