It was not [proper] for the people of Madīnah and those surrounding them of the bedouins that they remain behind after [the departure of] the Messenger of Allāh or that they prefer themselves over his self.1 That is because they are not afflicted by thirst or fatigue or hunger in the cause of Allāh, nor do they tread on any ground that enrages the disbelievers, nor do they inflict upon an enemy any infliction but that it is registered for them as a righteous deed. Indeed, Allāh does not allow to be lost the reward of the doers of good.
Translation: Saheeh International (English)
1 In times of hardship. Rather, they should have been willing to endure with the Prophet (ﷺ) whatever was necessary for Islām.
It is not for the people of Medina, or those around them of the people who live in the desert, to stay behind the Messenger of Allah (peace be upon him)if he himself goes out to fight, or to be stingy with themselves and give preference to their own safety over the safety of the Messenger (peace and blessings be upon him). Rather, they should sacrifice themselves for him. This is because they suffer no thirst, tiredness or hunger for the sake of Allah, and do not step anywhere in the land of those who deny the truth with their own feet or the hooves of their horses or camels, angering thereby those who oppose the truth, and do not make a gain over their enemy, killing or capturing them, making war gains or defeating them, except that Allah records for them the reward of a good action for them, which He accepts from them. Allah does not allow the reward of those who do good to be lost. Rather, He gives it to them in full, and increases the reward for them.