[Machine] The Prophet, peace be upon him, used to ask about a funeral when he was invited to it. If he praised the deceased, he would pray for them. If he did not praise them, he would say to their family, "What is your opinion of this person?" And he would not pray for them.
كَانَ النَّبِيُّ ﷺ إِذَا دُعِيَ إِلَى جِنَازَةٍ سَأَلَ عَنْهَا فَإِنْ أُثْنِيَ عَلَيْهَا خَيْرًا صَلَّى عَلَيْهَا وَإِنْ أُثْنِيَ عَلَيْهَا غَيْرَ ذَلِكَ قَالَ لِأَهْلِهَا «شَأْنَكُمْ بِهَا» وَلَمْ يُصَلِّ عَلَيْهَا