The Messenger of Allah ﷺ was in the house of Hafsah when he said, "No one who witnessed Badr and Hudaybiyah will enter the Fire."Hafsah asked, "Does Allah not say, 'And there is none of you except he will come to it' [Maryam 19:71]?"The Messenger of Allah ﷺ replied, "Listen to what follows, 'Then We will save those who feared Allah and leave the wrongdoers within it on their knees' [Maryam 19:72]."
كان رسول الله ﷺ في بيت حفصة فقال: لا يدخل النار أحد شهد بدرا والحديبية. قالت حفصة: أليس الله عز وجل يقول: {وإن منكم إلا واردها} قال رسول الله ﷺ: فمه {ثم ننجي الذين اتقوا ونذر الظلمين فيها جثيا}.
Ahmad (27042), Ibn Majah (4281), and Ibn Abu Asim in Sunnah (887) narrated it, and Ibn Hibban (4800) graded it sahih. All of them narrated it through the route of Ibn Idris, from Amash, from Abu Sufyan, from Jabir, from Umm Mubashir, who said, and then she mentioned it. Its isnad is sahih.