Sahih Muslim #2400 b
The Book of the Merits of the Companions 44:38
This hadith has been narrated on the authority of 'Ubaidullah with the same chain of transmitter but with the addition of the words:
" He abandoned saying prayer over the hypocrites who had died."