The author, may Allah shower blessings on him, said under the chapter on the recommendation of optional prayer during Ramadan; which is Tarawih. It is called Tarawih because the pious predecessors, may Allah be pleased with them, would observe prayer in Ramadan and prolong the standing, bowing and prostration. When they would have observed four rak'ah with two Taslims, they would rest before observing another four rak'ah, then they would rest before observing the three rak'ah. This is supported by the previous hadeeth of Aishah, may Allah be pleased with her, that the Prophet ﷺ would observe four rak'ah and do not ask about their beauty and length, then he would pray four rak'ah and do not ask about their beauty and length; then he would pray three rak'ah. The Prophet ﷺ used to encourage the night prayer in Ramadan without bringing his authority to bear with firm will. That is, he did not command it but encouraged it. He ﷺ said: “Whosoever performs (optional Tarawih) prayer at night during the month of Ramadan, with faith and in the hope of receiving Allah’s reward, will have his past sins forgiven”
The Prophet ﷺ prayed with his companions for three nights during Ramadan. He led them in congregation then stayed away and said, “I fear that the night prayer would become an obligation for you, which
you would be incapable of fulfilling.”(1) So he abandoned it but people were still coming to the mosque to pray, and a group of two or three men would observe it in congregation.
One night, Umar came out and found them praying separately, so he considered combining all of them behind a single Imam. So he instructed Ubayy bin Ka'b, may Allah be pleased with him, and another person to lead people in eleven rak'ah. Thus, people gathered behind one Imam in Tarawih and the Muslims have remained on this till this time of ours.
However, scholars differ regarding the number of rak'ah for Tarawih prayer; some of them say eleven rak'ah, some others say thirteen rak'ah, yet some say twenty rak'ah. Indeed, some mentioned more than this. This issue is broad because the differing scholars did not censure the other parties. The issue concerning this is immense, which implies that we cannot condemn the one who exceeds eleven rak'ah or the one who exceeds twenty-three rak'ah. Rather we say, pray whatever you wish as long as the congregation in the mosque is pleased with it and no one objects to it. But if the people differ, returning to the Sunnah is the best. The Sunnah is not to exceed thirteen rak'ah. This is because Aishah was asked about the prayer of the Prophet ﷺ in Ramadan and she said, “He did not exceed eleven rak'ah in Ramadan or any other month.” But in the absence of any disagreement, one could pray twenty-three or more rak'ah as long as the congregation do not seek for brevity. Otherwise, one should not exceed eleven or thirteen rak'ah.
Allah alone grants success.