A person who is a Muslim on both his mother’s and father’s side of the family, but refuses to pray or fast, and refrains from other acts of worship? Is it permissible to treat him like Muslims;
to eat with him and so on?
If the state of this person is, as you mentioned; he refuses to pray, fast, or do other rituals of Islam, he will be considered a Kafir (disbeliever), which will put him beyond the pale of Islam, according to the more correct of the two scholarly views. He should be asked to repent to Allah for three days. If he repents, all praise and thanks are due to Allah. Otherwise, the Muslim ruler must apply the ruling of Shari‘ah i.e. executing the apostate. Also, it is not permissible for a Muslim to be intimate with or visit the apostate except for advising, sermonizing, and guiding him, perhaps he will repent to Allah.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.