أَخْبَرَنَاهُ أَبُو عَبْدِ اللَّهِ الْحَافِظُ ، فِي " التَّارِيخِ " ، أَخْبَرَنِي أَبُو بَكْرِ بْنُ أَبِي عَمْرِو بْنِ مَطَرٍ ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدِ بْنِ شِيرَوَيْهِ ، حَدَّثَنَا أَبُو كُرَيْبٍ ، حَدَّثَنَا سُوَيْدُ بْنُ عَمْرٍو ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ . . . فَذَكَرَهُ غَيْرَ أَنَّهُ قَالَ : أُرَاهُ رَفَعَهُ لَمْ يَقُلْ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ .
[ وَرَوَاهُ الْحَسَنُ بْنُ أَبِي جَعْفَرٍ عَنْ أَيُّوبَ عَنْ حُمَيْدٍ عَنْ عَلِيٍّ ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ] .
Imam al-Hakim (may Allah have mercy on him) mentioned this same narration in his "al-Tarikh" through Suwayd bin Amr from Hammad bin Salamah, except that in it he said: "I think he raised it (to the Prophet)," and did not say: "from the Prophet (peace and blessings be upon him)."
[And al-Hasan bin Abi Ja'far narrated it from Ayyub, from Humayd, from Sayyiduna Ali (may Allah be pleased with him), from the Prophet (peace and blessings be upon him).]
Related hadith on this topic