It is narrated from Sayyidah Umm Mubashshir (may Allah be pleased with her); she said: I heard the Prophet (peace and blessings be upon him) saying in the house of Sayyidah Hafsah (may Allah be pleased with her): "No man who was present at Badr and al-Hudaybiyah will enter Hellfire." Sayyidah Hafsah (may Allah be pleased with her) said: "O Messenger of Allah! But Allah Almighty says: 'And there is none of you except that he will come to it; this is upon your Lord a decree that must be fulfilled' [Surah Maryam: 71]." He (peace and blessings be upon him) said: "Then what comes next?" She said: "'Then We will save those who feared Allah, and We will leave the wrongdoers in it on their knees' [Surah Maryam: 72]."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21728