It has been narrated on the authority of Jabir who said
We were with the Prophet (ﷺ) on an expedition. He said: There are some people in Medina. They are with you whenever you cover a distance or cross a valley. They have been detained by illness.
In a version of the tradition narrated on the authority of A'mash, we have the words
" They will share with you the reward (for Jihad)."