Mishkat al-Masabih 1737
وَعَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم: «من عَزَّى مُصَابًا فَلَهُ مِثْلُ أَجْرِهِ» . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَهْ وَقَالَ التِّرْمِذِيُّ: هَذَا حَدِيثٌ غَرِيبٌ لَا نَعْرِفُهُ مَرْفُوعًا إِلَّا مِنْ حَدِيثِ عَلِيِّ بْنِ عَاصِمٍ الرَّاوِي وَقَالَ: وَرَوَاهُ بَعْضُهُمْ عَنْ مُحَمَّد بن سوقة بِهَذَا الْإِسْنَاد مَوْقُوفا
From ʿAbdullah ibn Masʿud, who said: The Messenger of Allah ﷺ said: "Whoever consoles one struck by calamity will have the like of his reward." Reported by at-Tirmidhi and Ibn Majah. At-Tirmidhi said: "This is a gharib hadith; we do not know it as attributed to the Prophet except through the narration of ʿAli ibn ʿAsim, the narrator." And he said: "Some of them reported it from Muhammad ibn Suqah with this chain as the saying of the Companion."