‘Abdallah b. Ja'far told that when the news of Ja'far’s death came the Prophet said, “Prepare food for Ja'far’s family, for they have heard something which takes up their whole attention.”
‘Abdallah b. Mas'ud reported God's messenger as saying, “If anyone comforts one who has been afflicted he will have a reward equivalent to his.”
Tirmidhi and Ibn Majah transmitted it, Tirmidhi saying this is a gharib tradition which was known to him as traced back to the Prophet only among the traditions of ‘Ali b. ‘Asim the transmitter. He added that some transmitted it with this isnad from Muhammad b. Suqa in mauquf form.