قَالَ يَحْيَى : سَمِعْتُ مَالِكًا ، يَقُولُ : لَمْ أَرَ أَحَدًا مِنْ أَهْلِ الْعِلْمِ يَكْرَهُ أَنْ يُصَلَّى عَلَى وَلَدِ الزِّنَا وَأُمِّهِ
Imam Malik, may Allah have mercy on him, said: I have not seen any scholar who prohibits offering the funeral prayer for a child born out of wedlock or his mother.