Abdullah bin Abbas reported,

The Messenger of Allah ﷺ stayed in Mecca for fifteen nights during the year of the Conquest, shortening the prayer.

Ibn Majah 1076

Sahih

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

عن ابن عباس

أن رسول الله ﷺ أقام بمكة عام الفتح خمس عشرة ليلة يقصر الصلاة

ابن ماجه 1076صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
How long may a traveler shorten the prayer when staying in a town
Numbering
Darussalam 1076
Ibn Majah 1076