Sheviit 2:6
משנה: בְּצָלִים הַסָּרִיסִים וּפוּל הַמִּצְרִי שֶׁמָּנַע מֵהֶן מַיִם שְׁלֹשִׁים יוֹם לִפְנֵי רֹאשׁ הַשָּׁנָה מִתְעַשְּׂרִין לְשֶׁעָבַר וּמוּתָּרִין בַּשְּׁבִיעִית וְאִם לָאו אֲסוּרִין בַּשְּׁבִיעִית וּמִתְעַשְּׂרִין לְשָׁנָה הַבָּאָה.
Mishnah: The saris onions and Egyptian beans from which he withheld water thirty days before Rosh Hashanah are tithed for the past and are permitted in sheviit; and if not — they are forbidden in sheviit and are tithed for the coming year.
וְשֶׁל בַּעַל שֶׁמָּנַע מֵהֶן מַיִם שְׁתֵּי עוֹנוֹת דִּבְרֵי רִבִּי מֵאִיר וַחֲכָמִים אוֹמְרִים שָׁלֹשׁ.
And of a baal-field, from which he withheld water two seasons — the words of Rabbi Meir; and the sages say: three.
הלכה: מַהוּ בְּצָלִין הַסָּרִיסִין אִילֵּין בּוֹצְלַיָיא כּוּפְרַיָא דְּלָא עָבְדִין זֶרַע.
Halachah: What are saris onions? — These village onions that do not make seed.
אָמַר רִבִּי מָנָא מִכֵּיוָן שֶׁמָּנַע מֵהֶן מַיִם שְׁלֹשִׁים יוֹם לִפְנֵי רֹאשׁ הַשָּׁנָה נַעֲשׂוּ כְבַעַל.
Rabbi Mana said: since he withheld from them water thirty days before Rosh Hashanah, they became as a baal-field.
רִבִּי יוֹנָה בָּעֵי לְמַפְרֵיעוֹ הוּא נַעֲשֶׂה זֶרַע זַרְעוֹ מִיכָּן וְלָבֹא.
Rabbi Yonah asked: retroactively it becomes seed — sown from here on.
מַה נְפַק מִבֵּינֵיהוֹן לָקַט בְּתוֹךְ שְׁלֹשִׁים וּלְאַחַר שְׁלֹשִׁים.
What comes out between them? — He picked within thirty and after thirty.
אִין תֵּימַר לְמַפְרֵיעוֹ הוּא נַעֲשֶׂה זֶרַע מְעַשֵּׂר מִזֶּה עַל זֶה אִין תֵּימַר מִיכָּן וְלָבֹא אֵינוֹ מְעַשֵּׂר מִזֶּה עַל זֶה.
If you say retroactively it becomes seed — he tithes from this upon that; if you say from here on — he does not tithe from this upon that.