Sunan Abi Dawud, Book 40, Hadith 140 (Abu Dawud 4492)

Narrated Hakim ibn Hizam:

The Messenger of Allah (ﷺ) forbade to take retaliation in the mosque, to recite verses in it and to inflict the prescribed punishments in it.