كتاب المقدمات
The Book of Miscellany
(51)
Chapter: Hope in Allah's Mercy
(51)
- باب الرجاء
Riyad as-Salihin 412
'Ubadah bin As-Samit (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "He who bears witness that there is no true god except Allah, alone having no partner with Him, that Muhammad is His slave and His Messenger, that 'Isa (Jesus) is His slave and Messenger and he (Jesus) is His Word which He communicated to Maryam (Mary) and His spirit which He sent to her, that Jannah is true and Hell is true; Allah will make him enter Jannah accepting whatever deeds he accomplished".

[Al-Bukhari and Muslim].

Another narration in Muslim is: the Messenger of Allah (ﷺ) said, "Whosoever testifies that there is no true god except Allah and that Muhammad is the Messenger of Allah, Allah (SWT) saves him from the Fire (of Hell)".

وعن عبادة بن الصامت، رضي الله عنه ، قال‏:‏ قال رسول الله، صلى الله عليه وسلم‏:‏ ‏"‏من شهد أن لا إله إلا الله وحده لا شريك له، وأن محمداً عبده ورسوله، وأن عيسى عبد الله ورسوله، وكلمته ألقاها إلى مريم وروح منه، وأن الجنة حق والنار حق، أدخله الله الجنة على ما كان من العمل‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏ ‏.‏ وفي رواية لمسلم‏:‏‏"‏من شهد أن لا إله إلا الله، وأن محمداً رسول الله، حرم عليه النار‏"‏‏.‏
Reference : Riyad as-Salihin 412
In-book reference : Introduction, Hadith 412