The Messenger of Allah ﷺ stayed at Tabuk for twenty days, shortening the prayer.
أقام رسول الله ﷺ بتبوك عشرين يوما يقصر الصلاة.
Abu Dawud (1635), Ahmad (14139), Ibn Hibban (2749), and Bayhaqi (3/152) all narrated it from the hadith of Abdul-Razzaq, and it is in his Musannaf (4335), where he said, Mamar informed us, from Yahya bin Abu Kathir, from Muhammad bin Abdul-Rahman bin Thawban, from Jabir bin Abdullah, and he related it.Its isnad is sahih. For more, see the book on prayer.