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:12102Muḥammad b. Jaʿfar al-Rāzī > ʿAlī b. al-Jaʿd > Abū Shaybah Ibrāhīm b. ʿUthmān > al-Ḥakam > Miqsam > Ibn ʿAbbās

[Machine] The Prophet ﷺ used to pray twenty units (rak'ahs) and the odd (witr) during Ramadan.  

الطبراني:١٢١٠٢حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ الرَّازِيُّ ثنا عَلِيُّ بْنُ الْجَعْدِ ثنا أَبُو شَيْبَةَ إِبْرَاهِيمُ بْنُ عُثْمَانَ عَنِ الْحَكَمِ عَنْ مِقْسَمٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

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