[Machine] The Messenger of Allah ﷺ used to ask about a funeral when he was invited to it. If it was praised, he would stand and pray for it. And if it was not praised, he would say to its people, "What is your issue with it?" and he would not pray for it.
كَانَ رَسُولُ اللهِ ﷺ إِذَا دُعِيَ لِجِنَازَةٍ سَأَلَ عَنْهَا فَإِنْ أُثْنِيَ عَلَيْهَا خَيْرٌ قَامَ فَصَلَّى عَلَيْهَا وَإِنْ أُثْنِيَ عَلَيْهَا غَيْرُ ذَلِكَ قَالَ لِأَهْلِهَا شَأْنُكُمْ بِهَا وَلَمْ يُصَلِّ عَلَيْهَا