"The Messenger of Allah (ﷺ) led us in prayer in Mina, two rak'ahs, when the people were greater in number and more secure."
Sunan an-Nasa'i Book 15, Hadith 14