Can You Pray at Home If You Are Sick?
Question

My relative is suffering from a sickness that keeps him confined to bed. Is it permissible for him to pray at home?
Praise be to Allah.Patience in the face of calamities
We ask Allah to bless the sick Muslims with reward and healing. Undoubtedly the one who suffers sickness and bears it with patience, Allah will expiate his sins thereby and raise him in status. The Prophet (peace and blessings of Allah be upon him) said: “There is nothing that befalls a believer, not even a thorn that pricks him, but Allah will record for him thereby one hasanah (good deed) or will remove from him one sin.” (Narrated by Muslim, 2572) 
Can you pray at home if you are sick?
The sick person is excused from Jumu`ah prayer and from praying in congregation . What is meant by that is the kind of sickness which means that it is too difficult for the person to go and pray in the mosque. This is based on the following evidence: 

Allah says (interpretation of the meaning): “So keep your duty to Allah and fear Him as much as you can.” [Al-Taghabun 64:16]
And He says (interpretation of the meaning):  “Allah burdens not a person beyond his scope.” [Al-Baqarah 2:286]
And He says (interpretation of the meaning): “No blame or sin is there upon the blind, nor is there blame or sin upon the lame, nor is there blame or sin upon the sick.” [Al-Fath 48:17]
The Prophet (peace and blessings of Allah be upon him) said: “If I command you to do a thing then do as much of it as you can.” (Agreed upon) 
And when the Prophet (peace and blessings of Allah be upon him) fell sick, he did not attend prayers in congregation, even though his house was beside the mosque. 
Ibn Mas’ud said: “There was a time when no one stayed away from the prayer except a hypocrite who was known for his hypocrisy or one who was sick…” (Narrated by Muslim, 654) 

All of this evidence indicates that the sick person is spared the obligation to pray Jumu`ah and prayers in congregation . (See al-Sharh al-Mumti’, 4/438) 
Shaykh ‘Abd al-‘Aziz ibn Baz (may Allah have mercy on him) said: 
“It is obligatory for Muslim men to pray in the mosque and increase the numbers of the Muslims, and to go out to the mosques (to pray), otherwise they will be resembling the hypocrites. Ibn Mas’ud said: “There was a time when no one stayed away from the prayer except a hypocrite who was known for his hypocrisy.” 
The Prophet (peace and blessings of Allah be upon him) thought of burning down the houses of those who stayed away from the prayer. 
So you and every Muslim who is able to must pray in the mosque; the Muslim is not allowed to pray at home unless he has a valid shar’i excuse such as sickness or fear . May Allah help us all to follow His guidance.” (Majmu’ Fatawa, vol. 12)
For more, please see these answers: 151992 , 147381 , and 89774
And Allah knows best.