Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:4299Aḥmad b. Yūnus > Abū Shihāb > ʿĀṣim > ʿIkrimah > Ibn ʿAbbās

Ibn ʿAbbas said, "We stayed for 19 days with Prophet on a journey during which we used to offer shortened prayers." Ibn ʿAbbas added, "We offer the Qasr prayer (i.e. shortened prayer) If we stay up to 19 days as travelers, But if we stay longer, we offer complete prayers.  

البخاري:٤٢٩٩حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ حَدَّثَنَا أَبُو شِهَابٍ عَنْ عَاصِمٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

أَقَمْنَا مَعَ النَّبِيِّ ﷺ فِي سَفَرٍ تِسْعَ عَشْرَةَ نَقْصُرُ الصَّلاَةَ وَقَالَ ابْنُ عَبَّاسٍ وَنَحْنُ نَقْصُرُ مَا بَيْنَنَا وَبَيْنَ تِسْعَ عَشْرَةَ فَإِذَا زِدْنَا أَتْمَمْنَا