Shekalim4: 8
הַמַּקְדִּישׁ נְכָסִים, וְהָיוּ בָהֶן דְּבָרִים רְאוּיִין עַל גַּבֵּי הַמִּזְבֵּחַ, יֵינוֹת, שְׁמָנִים וְעוֹפוֹת, רַבִּי אֶלְעָזָר אוֹמֵר: יִמָּכְרוּ לְצָרְכֵי אוֹתוֹ הַמִּין וְיָבִיא בִדְמֵיהֶן עוֹלוֹת, וּשְׁאָר נְכָסִים יִפְּלוּ לְבֶדֶק הַבָּיִת.
[If] one consecrated [his] possessions, and among them were things suitable for the altar, [such as] wines, oils or fowl —- R’ Elazar says: They should be sold to those needing each particular item and their proceeds should be used for burnt-offerings, but the rest of the possessions should go to the upkeep of the Temple.