Sunan Abi Dawud, Book 21, Hadith 103 (Abu Dawud 3192)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: If anyone prays over the dead in the mosque, there is nothing on him.