حَدَّثَنَا إِبْرَاهِيمُ بْنُ نَائِلَةَ الْأَصْبَهَانِيُّ، ثنا مُحَمَّدُ بْنُ أَبِي بَكْرٍ الْمُقَدَّمِيُّ، ثنا وَكِيعُ بْنُ مُحْرِزٍ، عَنْ عَبَّادِ بْنِ مَنْصُورٍ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: «أَقَامَ بِمَكَّةَ سَبْعَةَ عَشَرَ يَوْمًا يَقْصُرُ الصَّلَاةَ»
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) stayed in Makkah for seventeen days, shortening the prayer.