Salim Abu Nadr reported,

Whenever the prayer was being established in the mosque, the Messenger of Allah ﷺ would sit down and not pray if he saw the people were few, but if he saw them gathered in a sizable group, he would pray.

Abu Dawud 545

Sahih

حدثنا عبد الله بن إسحق الجوهري أخبرنا أبو عاصم عن ابن جريج عن موسى بن عقبة

عن سالم أبي النضر قال

كان رسول الله ﷺ حين تقام الصلاة في المسجد إذا رآهم قليلا جلس لم يصل وإذا رآهم جماعة صلى

أبو داود 545صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Prayer is called and the imam has not come, they wait for him sitting
Numbering
Darussalam 545
Abu Dawud 545