Challah3: 4
כַּיּוֹצֵא בוֹ, הַמַּקְדִּישׁ פֵּרוֹתָיו עַד שֶׁלֹּא בָאוּ לְעוֹנַת הַמַּעַשְׂרוֹת, וּפְדָאָן — חַיָּבִין. וּמִשֶּׁבָּאוּ לְעוֹנַת הַמַּעַשְׂרוֹת, וּפְדָאָן — חַיָּבִין. הִקְדִּישָׁן עַד שֶׁלֹּא נִגְמְרוּ, וּגְמָרָן הַגִּזְבָּר, וְאַחַר כָּךְ פְּדָאָן — פְּטוּרִין, שֶׁבִּשְׁעַת חוֹבָתָן הָיוּ פְטוּרִין.
Similarly, [if] one consecrated his fruits before they reached the tithing stage, and redeemed them, they are obligated. [If he consecrated them] after they reached the tithing stage, and he redeemed them, they are obligated. [If] he consecrated them before they were finished, and the Temple clerk finished them, and afterward [the owner] redeemed them, they are exempt, since at the time of their [potential] liability they were exempt.