Abu al-Nadr said: when the Iqamah was pronounced and the Messenger of Allah ﷺ saw that they (the people) were small in number, he would sit down, and would not pray; but when he saw them (the people) large in number, he would pray.
The Prophet Muhammad's example also serves as an encouragement for us all; even though it may be difficult at times or we may feel like giving up on something due to lack of support or participation from others, his example shows us that we should never give up on doing what is right no matter what obstacles come our way. We must always strive towards doing good deeds even if it means going against popular opinion or facing opposition from those around us.