The Companions of Muhammad ﷺ were saying on the day of the Trench, "We are the ones who pledged allegiance to Muhammad upon Islam for as long as we live," or he said, "upon jihad." Hammad was uncertain which. And the Prophet ﷺ was saying, "O Allah, the true good is the good of the Hereafter, so forgive the Ansar and the Muhajirun."
حدثني محمد بن حاتم حدثنا بهز حدثنا حماد بن سلمة حدثنا ثابت
أن أصحاب محمد ﷺ كانوا يقولون يوم الخندق نحن الذين بايعوا محمدا على الإسلام ما بقينا أبدا أو قال على الجهاد شك حماد والنبي ﷺ يقول اللهم إن الخير خير الآخره فاغفر للأنصار والمهاجره