This is how Shu'bah reported this Hadith from IbnAbi Laila, and he said: "From Abu Ayyub from the Prophet ﷺ." Ibn Abi Laila was confused in this narration, sometimes he would say: "From Abu Ayyub from the Prophet ﷺ" and sometimes he would say: "From 'Ali from the Prophet ﷺ" similarly in meaning.
عَنِ النَّبِيِّ ﷺ وَكَانَ ابْنُ أَبِي لَيْلَى يَضْطَرِبُ فِي هَذَا الْحَدِيثِ يَقُولُ أَحْيَانًا عَنْ أَبِي أَيُّوبَ عَنِ النَّبِيِّ ﷺ وَيَقُولُ أَحْيَانًا عَنْ عَلِيٍّ عَنِ النَّبِيِّ ﷺ