Sahih Muslim #1805 a
The Book of Jihad and Expeditions 32:155
It has been narrated on the authority of Anas b. Malik that the Messenger of Allah (ﷺ) said:
O God, there is no life, but the life of the Hereafter, So forgive Thou the Ansar and the Muhajirs.