عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ مِنْ طَرِيقٍ ثَانٍ قَالَ خَرَجَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ وَالْمُهَاجِرُونَ يَحْفِرُونَ الْخَنْدَقَ فِي غَدَاةٍ بَارِدَةٍ قَالَ أَنَسٌ وَلَمْ يَكُنْ لَهُمْ خَدَمٌ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ اللَّهُمَّ إِنَّمَا الْخَيْرُ خَيْرُ الْآخِرَةِ فَاغْفِرْ لِلْأَنْصَارِ وَالْمُهَاجِرَةِ قَالَ فَأَجَابُوهُ نَحْنُ الَّذِينَ بَايَعُوا مُحَمَّدًا عَلَى الْجِهَادِ مَا بَقِينَا أَبَدًا وَلَا نَفِرُّ وَلَا نَفِرُّ وَلَا نَفِرُّ
(Second chain) It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) came out and saw that the Muhajirun were digging the trench on a very cold morning; they had no servants (rather, they used to do their work themselves). The Messenger of Allah (peace and blessings be upon him) said: "True goodness is the goodness of the Hereafter. O Allah! Forgive the Ansar and the Muhajirun." In response, the noble Companions said: "We are those who have pledged allegiance to Muhammad (peace and blessings be upon him) that as long as we live, we will continue to strive (in jihad), and we will not flee from the battlefield, and we will not flee, and we will not flee."