He does not pray in Congregation except on Friday
Question :
There is a Muslim who prays in his house and he claims that His faith is strong, but he does not go the mosque except on Friday. If he died, should the people of the mosque offer the funeral prayer over him, or not?
Answer:
The most correct view from among the sayings of the scholars is that performing the five obligatory prayers in congregation is an obligation upon every man who is able to do so. So any man who does not offer them in congregation in the mosque without an excuse is a sinner and is disobedient to Allah and His Messenger. The evidence for this is that Allah has enjoined their performance in congregation in times of Jihad in Allah's cause, during the most difficult of times, even if it entails abandoning some of the conditions for its acceptance, such as in the manner of performing Salatul-Khawf - Allah, the Most High says:
And when you (O Messenger Muhammad) are among them, and lead them in As-Salah (the prayer), let one party of them stand up (in Salah) with you, taking their arms with them; when they finish their prostrations, let them take their positions in the rear and let the other party come up which have not yet prayed and let them pray with you, taking all precautions and bearing arms. Those who disbelieve wish, if you were negligent of your arms and your baggage, to attack you in a single rush...
And the evidence from the Sunnah is the narration of Abu Hurairah, may Allah be pleased with him, in which he said that Allah's Messenger said:
"By Him in Whose Hand is my soul, I intended to order that firewood be brought and then to order the prayer and for the Athan to be called for it, then to order a man to lead the people (in prayer) and then to go to the men who do not attend the prayer and burn their houses over them. And by Him in Whose Hand is my soul, if any of them knew that he would find a fat bone of meat or two fine ribs, he would come to the 'Isha' prayer.
Source:
The Permanent Committee
Fatawa Islamiyah, Vol. 2 Pages 335-336