Yahya related to me from Malik from Nafi that Abdullah ibn Umarused to pray four rakas behind the imam at Mina, and when he prayed byhimself he would pray two rakas.
USC-MSA web (English) reference: Book 9, Hadith 22
Arabic reference: Book 9, Hadith 351
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.