Qays bin Takhfa reported,

He was one of the People of the Suffah. He said, the Messenger of Allah ﷺ said to us, "Come along."So we set out to Ayesha's house, where we ate and drank. Then the Messenger of Allah ﷺ said to us, "If you wish, you may sleep here, or if you prefer, you may go to the mosque."We said, "We will go to the mosque instead."

Ibn Majah 752

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا الحسن بن موسى حدثنا شيبان بن عبد الرحمن عن يحيى بن أبي كثير عن أبي سلمة بن عبد الرحمن أن

يعيش بن قيس بن طخفة حدثه عن أبيه

وكان من أصحاب الصفة قال قال لنا رسول الله ﷺ انطلقوا فانطلقنا إلى بيت عائشة وأكلنا وشربنا فقال لنا رسول الله ﷺ إن شئتم نمتم ها هنا وإن شئتم انطلقتم إلى المسجد قال فقلنا بل ننطلق إلى المسجد

ابن ماجه 752صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Mosques and congregations
Chapter
Sleeping in the masjid
Numbering
Darussalam 752
Ibn Majah 752