[Machine] The Messenger of Allah ﷺ stayed in Tabuk for twenty days, shortening the prayers. Ma'mar reported it as a Musnad narration. It was also narrated by 'Ali ibn al-Mubarak and others from Yahya, from Ibn Thawban, from the Prophet ﷺ as Mursal narration. It was also narrated by al-Awza'i from Yahya, from Anas, who said it was around ten days, and I do not consider it to be preserved. It was also narrated from another source, from Jabir, as around ten days.
أَقَامَ رَسُولُ اللهِ ﷺ بِتَبُوكَ عِشْرِينَ يَوْمًا يَقْصُرُ الصَّلَاةَ تَفَرَّدَ مَعْمَرٌ بِرِوَايَتِهِ مُسْنَدًا وَرَوَاهُ عَلِيُّ بْنُ الْمُبَارَكِ وَغَيْرُهُ عَنْ يَحْيَى عَنِ ابْنِ ثَوْبَانَ عَنِ النَّبِيِّ ﷺ مُرْسَلًا وَرُوِيَ عَنِ الْأَوْزَاعِيِّ عَنْ يَحْيَى عَنْ أَنَسٍ وَقَالَ بِضْعَ عَشْرَةَ وَلَا أَرَاهُ مَحْفُوظًا وَقَدْ رُوِيَ مِنْ وَجْهٍ آخَرَ عَنْ جَابِرٍ بِضْعَ عَشْرَةَ