Pesachim5: 7
יָצְתָה כַּת רִאשׁוֹנָה, וְנִכְנְסָה כַּת שְׁנִיָּה; יָצְתָה שְׁנִיָּה — נִכְנְסָה שְׁלִישִׁית. כְּמַעֲשֵׂה הָרִאשׁוֹנָה כָּךְ מַעֲשֵׂה הַשְּׁנִיָּה וְהַשְּׁלִישִׁית.  קָרְאוּ אֶת הַהַלֵּל; אִם גָּמְרוּ — שָׁנוּ, וְאִם שָׁנוּ — שִׁלֵּשׁוּ, אַף עַל פִּי שֶׁלֹּא שִׁלְּשׁוּ מִימֵיהֶם.  רַבִּי יְהוּדָה אוֹמֵר: מִימֵיהֶם שֶׁל כַּת שְׁלִישִׁית לֹא הִגִּיעוּ לְ,,אָהַבְתִּי כִּי יִשְׁמַע ה' ”, מִפְּנֵי שֶׁעַמָּהּ מֻעָטִין.
When the first group left, the second group entered; when the second left, the third entered. Like the procedure of the first, so was the procedure of the second and the third. They recited the Hallel; if they finished it, they repeated it, and if the repetition was completed they would recite it a third time, although they never did recite it a third time. R' Yehudah says: The third group never reached as far as, I love, for HASHEM hears (Psalms 116:1), because its people were few.