Sunan Abi Dawud, Book 2, Hadith 730 (Abu Dawud 1120)

Narrated Abdullah ibn Umar:

The Prophet (ﷺ) said: When any of you dozes in the mosque (on Friday), he should change his place.