Through another chain, via Sa'id, from a man, from al-Hakam, from Abd al-Rahman bin Abi Layla, Sayyiduna Ali (may Allah be pleased with him) narrates something similar from the Prophet (peace and blessings be upon him). Ibn al-Khurasani said: This is correct.
The Shaykh said: This is more likely; the rest of Shu'bah's students did not mention it from Shu'bah, while the rest of Sa'id's students mentioned it from Sa'id in this way.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18318