Question:
Is it permissible to perform the Janaazah salaah for a muslim who commits suicide?
Answer:
Although committing suicide is a very grave sin in Shari’ah,the Shari’ah has permitted performing the Janaazah salaah for such a person.Some prominent people abstain from participating in the Janaazah salaah of such people as a warning to others.While this is permissible, the public has to perform the Janaazah salaah and cannot bury the person without doing so. A Hadith states that it is incumbent for people to perform the Janaazah salaah of a Muslim regardless of whether the person was good or bad.
And Allah knows best.
Fataawa Rahimiyyah Vol 3,page 30