Anas bin Malik reported,

The companions were chanting rhythmic verses with the Messenger of Allah ﷺ among them, saying, "O Allah, there is no good except the good of the Hereafter, so grant victory to the Ansar and the Muhajirun."In Shayban's version of the hadith, instead of "grant victory" (fansur), it reads "forgive" (faghfir).

Muslim 4675

Sahih

و حدثنا يحيى بن يحيى وشيبان بن فروخ قال يحيى أخبرنا و قال شيبان حدثنا عبد الوارث عن أبي التياح

حدثنا أنس بن مالك قال

كانوا يرتجزون ورسول الله ﷺ معهم وهم يقولون اللهم لا خير إلا خير الآخره فانصر الأنصار والمهاجره وفي حديث شيبان بدل فانصر فاغفر

مسلم 4675صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Jihad and expeditions
Chapter
Expedition of Ahzab, which is the Trench
Numbering
Darussalam 4675
Muslim 4675