The Prophet (may Allah's peace and blessings be upon him) talks about some men who could not participate in Jihad because they were sick or had other valid excuses. He stresses that whenever the Muslim fighters travel a distance or cross a valley or a defile, those who are detained get reward for such actions as well.