matters and their company is strictly impermissible. Those who will accompany them or support them will be sinners.
(Fatāwā Razawiyyaĥ)
Allah عَزَّوَجَلَّ says in the 84th verse of Sūraĥ At-Taubaĥ of the Holy Quran:
وَ لَا تُصَلِّ عَلٰۤی اَحَدٍ مِّنۡہُمۡ مَّاتَ اَبَدًا وَّ لَا تَقُمۡ عَلٰی قَبۡرِہٖ ؕ اِنَّہُمۡ کَفَرُوۡا بِاللہِ وَ رَسُوۡ لِہٖ وَ مَا تُوۡا وَ ہُمۡ فٰسِقُوۡنَ ﴿۸۴﴾
And never offer Ṣalāĥ for any of their dead, and never stand by his grave. No doubt, they
denied Allah and His Messenger, and died while they were in transgression
(infidelity).
[Kanz-ul-Īmān (Translation of Quran)] (Part 10, Sūraĥ At-Taubaĥ, verse 84)
Commenting on the above-mentioned verse, Ṣadr-ul-Afāḍil, ‘Allāmaĥ Maulānā Sayyid Muhammad Na’īmuddīn Murādābādī عَـلَيْهِ رَحۡمَةُ الـلّٰـهِ الۡـهَادِی says, ‘This verse has made it clear, that the funeral Ṣalāĥ of a disbeliever is not permissible at all and it is forbidden to stand besides the grave of a disbeliever for burial or to visit.’ (Khazāin-ul-‘Irfān, pp. 241)
It is reported by Sayyidunā Jābir Bin ‘Abdullāĥ رَضِىَ الـلّٰـهُ تَعَالٰی عَـنْهُمَا that the Beloved and Blessed Prophet صَلَّى اللهُ تَعَالٰى عَلَيْهِ وَاٰلِهٖ وَسَلَّم said, ‘If they fall ill, don’t go to see them, if they die, don’t participate in their funeral.’ (Sunan Ibn Mājaĥ, vol. 1, pp. 70, Ḥadīš 92,)