It is narrated from Nafi‘ that Sayyiduna Abdullah bin Umar (may Allah be pleased with them) used to say: No one should perform the funeral prayer without ablution.
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.
Hadith Referenceموطا امام مالك رواية يحييٰ / كتاب الجنائز / 544