(40) باب الْقَمِيصِ فِي الْكَفَنِ
It was narrated that 'Abdullah bin 'Umar said:
"When 'Abdullah bin Ubayy died, his son came to the Prophet and said: 'Give me your shirt so that I may shroud him in it, and (some and) offer the (funeral) prayer for him, and pray for forgiveness for him'. So he gave him his shirt then he said: 'When you have finished, inform me and I will offer the (funeral) prayer for him.' But 'Umar stopped him and said: 'Hasn't Allah forbidden you to offer the (funeral) prayer for the hypocrites?' He said: 'I have two options. Whether you ask forgiveness for them (hypocrites) or ask no forgiveness for them." So he offered the (funeral) prayer for him. Then Allah, Most High, revealed: 'And never pray (funeral prayer) for any of them (hypocrites) who dies, nor stand at his grave.' So he stopped offering the (funeral) prayer for them."
Reference: Sunan an-Nasa'i 1900
In-book reference: Book 21, Hadith 83
English translation: Vol. 3, Book 21, Hadith 1901