It is narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him): "Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) ordered Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) to lead the people in prayer during the nights of Ramadan, and said: 'The people fast during the day but they cannot recite (the Qur'an) well; if only you would recite the Qur'an to them at night.' He said: 'O Commander of the Believers! This is something that did not exist before (in this way).' Sayyiduna Umar (may Allah be pleased with him) said: 'I know, but this practice is better.' So he led the people in twenty rak'ahs."
Ahmad bin Mani' recorded it, and the wording is his; al-Nasa'i also recorded it in al-Sunan al-Kubra. The wording of al-Bayhaqi's narration in his Sunan is: "Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) ordered Sayyiduna Ubayy bin Ka'b and Sayyiduna Tamim al-Dari (may Allah be pleased with them both) to lead the people in eleven rak'ahs. The reciter would recite hundreds of verses (of the surahs), until we would lean on sticks because of the length of the standing, and we would only finish close to the first signs of dawn." Al-Bayhaqi said: The two narrations can be reconciled in this way: at first they used to pray eleven rak'ahs, then later they began to pray twenty rak'ahs, and they prayed the witr with three.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لضعف أبي جعفر الرازي في حفظه
Hadith Takhrij«أحمد بن منيع عن الحسن بن موسى عن أبي جعفر الرازي عن الربيع بن أنس عن أبي العالية عن أبي (المختارة 3/367). أبو جعفر الرازي: صدوق سيئ الحفظ (التقريب)؛ الربيع بن أنس: صدوق له أوهام (التقريب)»