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