Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) narrates: The Prophet (peace and blessings be upon him) used to perform two rak'ahs in Mina. Sayyiduna Abu Bakr (may Allah be pleased with him), Sayyiduna Umar (may Allah be pleased with him), and Uthman (may Allah be pleased with him) also performed (only two rak'ahs). Then after that, Sayyiduna Uthman (may Allah be pleased with him) started performing four rak'ahs there. Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) used to perform the prayer according to the Imam when following him, but when he prayed alone, he would perform four rak'ahs.