Shevi'is8: 7
אֵין מְבַשְּׁלִין יָרָק שֶׁל שְׁבִיעִית בְּשֶׁמֶן שֶׁל תְּרוּמָה, שֶׁלֹּא יְבִיאֶנוּ לִידֵי פְסוּל. רַבִּי שִׁמְעוֹן מַתִּיר. וְאַחֲרוֹן אַחֲרוֹן נִתְפָּס בַּשְּׁבִיעִית, וְהַפְּרִי עַצְמוֹ אָסוּר.
One may not cook a vegetable of the seventh [year] in oil which is terumah, so that he not cause it to become unfit. R’ Shimon permits [this]. The very last [object of exchange] is subject to seventh [year sanctity], but the produce itself remains prohibited.