Abu Shihab mentioned the hadith, and at its end is that Ibn Abbas (may Allah be pleased with them both) said: We shortened (the prayer) for seventeen days, and if we stayed longer, we would pray the complete prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5460