Narrated Ibn Abbas:
The Prophet once stayed for nineteen days and prayed shortened prayers. So when we travel led (and stayed) for nineteen days, we used to shorten the prayer but if we travelled (and stayed) for a longer period we used to offer the full prayer.
Sahih Bukhari, Volume 2, Book20, Number 186