1) It is not permissible to pray for forgiveness or say "RIP" (which is basically a dua for peace and comfort in the hereafter) upon the death of a non Muslim. This is because those who die as Kuffars are promised eternal punishment in the hereafter, and praying for their forgiveness is forbidden. Allah says in the Quran:
"It is not (permissible) for the
Prophet and the believers to seek forgiveness for the Mushriks, even if they are kinsmen, after it became clear to them that they are the people of hell." (Surah Al Tawbah, Verse no. 113)
2) The phrase "inna lillahi wa inna ilaihi raji'un" does not contain any element of dua or istighfar. Rather, it simply expresses the reality that we all belong to Allah and that we will all return to Him. However, according to the Quran, this phrase is to be recited in times of hardship and misfortune. Therefore, there is some hesitation in reciting it upon the death of a non Muslim. It is therefore better to remain silent on this occassion and reflect on one's own hereafter.
۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔۔
دلائل:
القرآن الکریم: (التوبة، الایة: 113)
مَا كَانَ لِلنَّبِيِّ وَالَّذِينَ آمَنُوا أَن يَسْتَغْفِرُوا لِلْمُشْرِكِينَ وَلَوْ كَانُوا أُولِي قُرْبَىٰ مِن بَعْدِ مَا تَبَيَّنَ لَهُمْ أَنَّهُمْ أَصْحَابُ الْجَحِيمِo
روح المعانی: (152/7، ط: دار احیاء التراث العربی)
علی ما جری علیہم من النکال والاھلاک فان اھلاک الکفار والعصاتہ من حیث انہ تخلیص.
من اھل الارض من شؤم عقائدہم الفاسدتہ واعمال الخبیثتہ نعمتہٌ جلیلتہٌ یحق ان یحمد علیھا فھذا منہ تعالی تعلیم العباد ان یحمدوہ علی مثل ذالک. واختار الطبرسی انہ حمدٌمنہ عزاسمہ لنفسہ علی ذالک الفعل.
Allah the Almighty knows best.
Darul ifta Al-Ikhlas, Karachi.