Pesachim8: 2
הָאוֹמֵר לְעַבְדּוֹ: ,,צֵא וּשְׁחוֹט עָלַי אֶת הַפֶּסַח”, שָׁחַט גְּדִי — יֹאכַל; שָׁחַט טָלֶה — יֹאכַל; שָׁחַט גְּדִי וְטָלֶה יֹאכַל מִן הָרִאשׁוֹן.  שָׁכַח מָה אָמַר לוֹ רַבּוֹ, כֵּיצַד יַעֲשֶׂה? יִשְׁחֹט טָלֶה וּגְדִי, וְיֹאמַר: ,,אִם גְּדִי אָמַר לִי רַבִּי — גְּדִי שֶׁלּוֹ וְטָלֶה שֶׁלִּי; וְאִם טָלֶה אָמַר לִי רַבִּי — הַטָּלֶה שֶׁלּוֹ וּגְדִי שֶׁלִּי”.  שָׁכַח רַבּוֹ מָה אָמַר לוֹ — שְׁנֵיהֶם יֵצְאוּ לְבֵית הַשְּׂרֵפָה, וּפְטוּרִין מִלַּעֲשׂוֹת פֶּסַח שֵׁנִי.
One who says to his slave, “Go out and slaughter the pesach-offering for me,” [if] he slaughtered a kid he may eat [of it, if] he slaugh-tered a lamb he may eat [of it]. [If] he slaughtered [both] a kid and a lamb he must eat of the first.  [If] he forgot what his master told him, what should he do? Let him slaughter a lamb and a kid and say: “If my master told me [to slaughter] a kid, let the kid be his and the lamb mine; and if my master told me [to slaughter] a lamb, let the lamb be his and the kid mine.”  [If] his master forgot what he had told him, both go forth to the place of burning. And they are exempt from participating in [the] second pesach.