Hafs bin Ghiyath (may Allah have mercy on him) reports from Asim (may Allah have mercy on him): For a stay of seventeen days there is shortening; whoever stays seventeen days should shorten, and whoever stays longer than that should pray the complete prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5465