Yahya related to me from Malik from Nafi that Ibn Umar stayed inMakka for ten nights, shortening the prayer, except when he prayed itbehind an imam, in which case he followed the imam's prayer.
USC-MSA web (English) reference: Book 9, Hadith 19
Arabic reference: Book 9, Hadith 347
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.