Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
malik:16-27Mālik > Nāfiʿ

Yahya related to me from Malik from Nafi that Abdullah ibn Umar used to say, "No-one should pray over a dead person unless he is in wudu." Yahya said that he heard Malik say, "I have not seen any person of knowledge disapproving of praying over either a child born of adultery or its mother."  

مالك:١٦-٢٧وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ نَافِعٍ

أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ كَانَ يَقُولُ لاَ يُصَلِّي الرَّجُلُ عَلَى الْجَنَازَةِ إِلاَّ وَهُوَ طَاهِرٌ قَالَ يَحْيَى سَمِعْتُ مَالِكًا يَقُولُ لَمْ أَرَ أَحَدًا مِنْ أَهْلِ الْعِلْمِ يَكْرَهُ أَنْ يُصَلَّى عَلَى وَلَدِ الزِّنَا وَأُمِّهِ