Abdullah bin Abbas reported,

We stayed with the Prophet ﷺ on a journey for nineteen days, shortening the prayer. Ibn Abbas said, "We shorten the prayer as long as our stay does not exceed nineteen days, but if we stay longer, we complete it in full."

Bukhari 4299

Sahih

حدثنا أحمد بن يونس حدثنا أبو شهاب عن عاصم عن عكرمة

عن ابن عباس قال

أقمنا مع النبي ﷺ في سفر تسع عشرة نقصر الصلاة وقال ابن عباس ونحن نقصر ما بيننا وبين تسع عشرة فإذا زدنا أتممنا

البخاري 4299صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Prophet's ﷺ stay in Makkah at the time of the conquest
Numbering
Darussalam 4299
Bukhari 4299