Abu Amr al-Shaybani said that al-Mustawrid al-Ijli, who had apostatised, was brought to Sayyiduna Ali (may Allah be pleased with him). He offered Islam to him, but he refused. Sayyiduna Ali (may Allah be pleased with him) killed him and gave his inheritance to his Muslim relatives.
Imam al-Shafi'i (may Allah have mercy on him) said: Some of your people of hadith claim that this is an error. In another place he said: I said to him (the one debating with him): Have you heard anyone among your people of hadith claim that the hadith masters did not preserve from Sayyiduna Ali (may Allah be pleased with him) the words "so he divided his wealth among his Muslim heirs", and that we fear the one who added this made an error?
Imam Ahmad (may Allah have mercy on him) declared weak the hadith in which it is reported from Sayyiduna Ali (may Allah be pleased with him) that the inheritance of an apostate goes to his Muslim heirs.
The Shaykh said: The story of al-Mustawrid has been narrated from Ali through another route without these words; it only says that he did not touch his wealth.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12462