1. Nabi (Sallallahu Alaihi Wasallam) comforted the bereaved in the following manner:
إِنَّ لِلَّهِ مَا أَخَذَ وَلَهُ مَا أَعْطَى وَكُلٌّ إِلَى أَجَلٍ مُسَمًّى فَلْتَصْبِرْ وَلْتَحْتَسِبْ
To Allah Ta’ala alone belongs that which He takes, and to Him alone belongs that which He gives. Everything is until an appointed time (after which it will be taken from this world). Therefore, adopt patience and hope for reward from Allah Ta’ala.
2. It is not permissible for one to go to the home of a kaafir who has passed away for ta’ziyat while the funeral proceedings are underway. However, on meeting his kaafir neighbour or any other kaafir who has lost a family member e.g. a child, he may console him in the following words:
أَخْلَفَ اللَّهُ عَلَيْكَ خَيْرًا منه وَأَصْلَحَكَ
May Allah Ta’ala grant you something better (bless you with the taufeeq of accepting Islam) in exchange of the person you have lost, and May Allah Ta’ala improve your condition.