The Punishment For One Who Persists in Reviling the Religion is Death
Question :
What is the ruling on one who reviles the religion and Allah? And what is the atonement for him? And bearing in mind that the man is married, is his wife forbidden to him, or is she divorced?
Answer:
There is no doubt that this is apostasy from Islam and disbelief in Allah. The one who does it deserves to be killed, unless he repents. His wife is divorced from him and the relations with his family are cut off; he does not inherit from them, and they do not inherit from him. But if he repents, regrets what he has done, seeks forgiveness and acknowledges his sin, Allah will turn to him with forgiveness, and he may take back his wife, as long as she has not completed her waiting period. If she has completed it, she is her own master and she is not permissible to him unless she wishes to.
Source:
Ibn Jibreen
Fatawa Islamiyah, Vol. 6 Pages 113-114