It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he ascended the pulpit on Friday and delivered a sermon. Then Sayyiduna al-Ash'ath bin Qays (may Allah be pleased with him) stood up facing him and said: "These red-skinned non-Arabs have kept us away from you." At this Sayyiduna Ali (may Allah be pleased with him) said: "Who will excuse me against these pleasure-seekers? One of them stays behind, turning over on his soft bedding, while these people go out early for the remembrance of Allah. If I were to drive them away, I would surely be among the wrongdoers. Indeed, by Allah, I heard him (meaning the Prophet, peace and blessings be upon him) say: 'They will strike you to bring you back to the religion, just as you struck them at first to bring them to it.'"
Imam al-Daraqutni (may Allah have mercy on him) was asked about this narration and said: "Abu Mu'awiyah al-Darir (may Allah have mercy on him) narrates it from al-A'mash (may Allah have mercy on him), from al-Minhal bin Amr (may Allah have mercy on him), from Abbad bin Abdullah al-Asadi (may Allah have mercy on him), from Sayyiduna Ali (may Allah be pleased with him) as mawquf (from the Companion). But Abu Awanah (may Allah have mercy on him) and Yahya bin Isa al-Ramli (may Allah have mercy on him) narrated it from al-A'mash (may Allah have mercy on him) as marfu' (attributed to the Prophet, peace and blessings be upon him)."
And Sharik (may Allah have mercy on him) narrated it from al-A'mash (may Allah have mercy on him), and his wording inclines towards it being marfu', although he did not state it explicitly; and its being marfu' is what is correct.
Related hadith on this topic