1119sunnah.com 2:730
حدثنا هناد بن السري، عن عبدة، عن ابن إسحاق، عن نافع، عن ابن عمر، قال: سمعت رسول الله صلى الله عليه وسلم يقول: «إذا نعس أحدكم وهو في المسجد فليتحول من مجلسه ذلك إلى غيره»
The English translation is not shown here: its source is not yet cleared for public display.
Sunan Abi Dawud, vol. 1, p. 292, no. 1119. Not yet checked against the printed edition.