when the Iqamah was pronounced and the Messenger of Allah ﷺ saw that they (the people) were small in number, he would sit down, nd would not pray; but when he saw them (the people) large in number, he would pray. (Using translation from Abū Dāʾūd 545)
«كَانَ رَسُولُ اللَّهِ ﷺ يَكُونُ فِي الْمَسْجِدِ حِينَ تُقَامُ الصَّلَاةُ فَإِذَا رَآهُمْ قَلِيلًا جَلَسَ ثُمَّ صَلَّى وَإِذَا رَآهُمْ جَمَاعَةً صَلَّى»