Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:11672ʿAlī b. ʿAbd al-ʿAzīz > Abū Nuʿaym > Sharīk > ʿAbd al-Raḥman b. al-Aṣbahānī > ʿIkrimah > Ibn ʿAbbās

[Machine] After the victory, the Prophet ﷺ stayed for seventeen days to pray two Rak'ahs.  

الطبراني:١١٦٧٢حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ ثنا أَبُو نُعَيْمٍ ثنا شَرِيكٌ عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْأَصْبَهَانِيِّ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

«أَقَامَ النَّبِيُّ ﷺ بَعْدَ الْفَتْحِ سَبْعَةَ عَشَرَ يَوْمًا يُصَلِّي رَكْعَتَيْنِ»  


See similar narrations below:

Collected by Bukhārī
bukhari:4298ʿAbdān > ʿAbdullāh > ʿĀṣim > ʿIkrimah > Ibn ʿAbbās

The Prophet ﷺ stayed in Mecca for 19 days during which he prayed 2 rakʿat in each prayer.  

البخاري:٤٢٩٨حَدَّثَنَا عَبْدَانُ أَخْبَرَنَا عَبْدُ اللَّهِ أَخْبَرَنَا عَاصِمٌ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

أَقَامَ النَّبِيُّ ﷺ بِمَكَّةَ تِسْعَةَ عَشَرَ يَوْمًا يُصَلِّي رَكْعَتَيْنِ