It was narrated that 'Umar bin Al-Khattab said:
When 'Abdullah bin Ubayy bin Soul died, the Messenger of Allah was called upon to offer the funeral prayer for him. When the Messenger of Allah stood up (to offer the prayer), I got up quickly and said: 'O Messenger of Allah Are you going to pray for Ibn Ubayy when he said such-and-such an occasion?' And I stated to list all the things that he had said. The Messenger of Allah smiled and said: 'Leave me alone, O 'Umar.' When I spoke too much he said: 'I have been given the choice and I have chosen (to offer the prayer for him). If I knew that he could be forgiven by asking Allah's forgiveness more than seventy times, I would have done so.' The Messenger of Allah offered the funeral prayer for him, and then left. A short while later, the two Verses form surah Bara were revealed: 'And never pray (funeral prayer) for any of them (hypocrites) who dies, nor stand at his grave. Certainly they disbelieved in Allah and His Messenger, and died while they were rebellious.' Later I was astonished by my audacity toward the Messenger of Allah on that day. And Allah and His Messenger know best.