It is narrated from Hazrat Urwah bin Zubair that the Messenger of Allah, peace and blessings be upon him, performed four rak‘ahs of prayer at Mina as two rak‘ahs (i.e., he shortened them). And Sayyiduna Abu Bakr, may Allah be pleased with him, also performed two rak‘ahs there, and Sayyiduna Umar bin Khattab, may Allah be pleased with him, also performed two rak‘ahs there, and Sayyiduna Uthman bin Affan, may Allah be pleased with him, also performed two rak‘ahs at Mina until half of his caliphate, then he started performing four.
Imam Malik, may Allah have mercy on him, said that when the residents of Makkah go for Hajj, they should shorten (the prayers) at Mina, and perform two rak'ahs until they return from Hajj.
Hadith Referenceموطا امام مالك رواية يحييٰ / كتاب الحج / 904