It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both): "The Messenger of Allah (peace and blessings be upon him) used to pray twenty rak'ahs and the witr in blessed Ramadan."
Abu Bakr bin Abi Shaybah and Abd bin Humayd recorded it; the wording of Abd bin Humayd is: "He (peace and blessings be upon him) used to pray twenty rak'ahs in Ramadan and pray the witr with three rak'ahs." The wording of al-Bayhaqi's narration is: "He (peace and blessings be upon him) used to pray twenty rak'ahs and the witr in the month of Ramadan, not in congregation." The chains of all these narrations revolve around Ibrahim bin Uthman Abu Shaybah, who is a da'if (weak) narrator; moreover, along with its weakness, this narration contradicts the sahih hadith that Muslim recorded in his Sahih from Sayyidah Aishah (may Allah be pleased with her), who said: "The night prayer of the Messenger of Allah (peace and blessings be upon him), in Ramadan and outside it, was thirteen rak'ahs, including the two rak'ahs of Fajr."
Hadith Takhrij«ومدار أسانيدهم على إبراهيم بن عثمان أبي شيبة، وهو ضعيف، ومع ضعفه مخالف لما رواه مسلم في صحيحه من حديث عائشة قالت: "كانت صلاة رسول الله صلى الله عليه وسلم بالليل في رمضان وغيره ثلاث عشرة ركعة منها ركعتي الفجر"» «أخرجه مصنف ابن أبي شيبة برقم: 13، وأخرجه المعجم الكبير للطبراني برقم: 12102، وأخرجه المعجم الأوسط للطبراني برقم: 5436، 802، 2062، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 4415، وأخرجه صحيح البخاري برقم: 1096، وأخرجه صحيح مسلم برقم: 738، وأخرجه سنن الترمذي برقم: 439، وأخرجه سنن أبي داود برقم: 1341، وأخرجه مسند أحمد برقم: 23553، 23596، 23925، 24211، وأخرجه فتح الباري برقم: 181، 337، 594، 600، 1087، 1089، 3376، وأخرجه صحيح ابن خزيمة برقم: 49، 1166، 2213، وأخرجه شرح معاني الآثار برقم: 1680، وأخرجه السنن الكبرى للنسائي برقم: 484، 506»