The Book of Prayer
Bulugh al-Maram #509
كتاب الصلاة
وَعَنْ اِبْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -«صَلُّوا عَلَى مَنْ قَالَ: لَا إِلَهَ إِلَّا اَللَّهُ, وَصَلُّوا خَلْفَ مَنْ قَالَ: لَا إِلَهَ إِلَّا اَللَّهُ» رَوَاهُ اَلدَّارَقُطْنِيُّ بِإِسْنَادٍ ضَعِيفٍ.
Narrated Ibn 'Umar (RA):
Allah's Messenger (ﷺ) said: “Pray (funeral prayers) over him who said (believed): 'Nothing deserves to be worshiped except Allah'; and pray behind him who says: 'Nothing deserves to be worshiped except Allah'.”
وَعَنْ اِبْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -"صَلُّوا عَلَى مَنْ قَالَ: لَا إِلَهَ إِلَّا اَللَّهُ, وَصَلُّوا خَلْفَ مَنْ قَالَ: لَا إِلَهَ إِلَّا اَللَّهُ" رَوَاهُ اَلدَّارَقُطْنِيُّ بِإِسْنَادٍ ضَعِيفٍ .
Allah's Messenger (ﷺ) said: "Pray (funeral prayers) over him who said (believed): 'Nothing deserves to be worshiped except Allah'; and pray behind him who says: 'Nothing deserves to be worshiped except Allah'."
— Bulugh al-Maram, Hadith 509