The Shulchan Aruch · Orach Chayim
אורח חיים תע״זOrach Chayim 477
Siman 477 of 697 in Orach Chayim — 2 se'ifim
הלכות פסחLaws of Passover· siman 477
Se’if 1א׳
לְאַחַר גְּמַר כָּל הַסְעֻדָּה אוֹכְלִים מִמַּצָּה הַשְּׁמוּרָה תַּחַת הַמַּפָּה כַּזַּיִת כָּל אֶחָד, זֵכֶר לַפֶּסַח הַנֶּאֱכָל עַל הַשֹּׂבַע, וְיֹאכְלֶנּוּ בַּהֲסַבָּה וְלֹא יְבָרֵךְ עָלָיו, וִיהֵא זָהִיר לְאָכְלוֹ קֹדֶם חֲצוֹת. וְיַקְדִּים עַצְמוֹ שֶׁגַּם הַהַלֵּל יִקְרָא קֹדֶם חֲצוֹת (רַ"ן פ' ע"פ וְסוֹף פ"ב דִּמְגִלָּה).
Laws of eating the Afikoman. Containing 2 paragraphs: After eating the whole meal, each person eats a kezayit from the shemura matza that was wrapped up. This is done to remember the Korban Pesach which eaten on a full stomach. One should eat the afikomen reclining. Do not make a bracha on eating the afikomen. Be sure to eat the afikomen before halachic midnight. (Try to finish Hallel before halachic midnight as well) (Ran on Megillah)
Se’if 2ב׳
אִם שָׁכַח וְלֹא אָכַל אֲפִיקוֹמָן, וְלֹא נִזְכַּר עַד שֶׁנָּטַל יָדָיו אוֹ שֶׁאָמַר הַב לָן וּנְבָרֵךְ, אוֹכֵל אֲפִיקוֹמָן בְּלֹא בִּרְכַּת הַמּוֹצִיא. וְאִם לֹא נִזְכַּר עַד שֶׁבֵּרַךְ בִּרְכַּת הַמָּזוֹן, אִם נִזְכַּר קֹדֶם שֶׁבֵּרַךְ בּוֹרֵא פְּרִי הַגֶּפֶן יִטֹּל יָדָיו וִיבָרֵךְ הַמּוֹצִיא וְיֹאכַל הָאֲפִיקוֹמָן וְיַחֲזֹר וִיבָרֵךְ בִּרְכַּת הַמָּזוֹן וִיבָרֵךְ בּוֹרֵא פְּרִי הַגֶּפֶן וְיִשְׁתֶּה הַכּוֹס (בֵּית יוֹסֵף), וְאִם לֹא נִזְכַּר עַד אַחַר שֶׁבֵּרַךְ בּוֹרֵא פְּרִי הַגֶּפֶן לֹא יֹאכַל אֲפִיקוֹמָן, וְיִסְמֹךְ עַל מַצָּה שֶׁאָכַל בְּתוֹךְ הַסְעֻדָּה שֶׁכֻּלָּן שְׁמוּרוֹת הֵן מִשְּׁעַת לִישָׁה; אֲבָל בְּמָקוֹם שֶׁנָּהֲגוּ לַעֲשׂוֹת שִׁמּוּר לְמַצּוֹת מִצְוָה מִשְּׁעַת קְצִירָה, אֲפִלּוּ לֹא נִזְכַּר עַד אַחַר הַהַלֵּל, יִטֹּל יָדָיו וִיבָרֵךְ הַמּוֹצִיא וְיֹאכַל הָאֲפִיקוֹמָן. הַגָּה: וְיַחֲזֹר וִיבָרֵךְ עַל הַכּוֹס וְאֵין לָחוּשׁ בְּמַה שֶּׁמּוֹסִיף עַל הַכּוֹסוֹת (תְּשׁוּבַת הָרֹא"שׁ כְּלָל כ"ד). וְאִם נֶאֱבַד הָאֲפִיקוֹמָן יֹאכַל כַּזַּיִת אֶחָד מִמַּצָּה שְׁמוּרָה אַחֶרֶת (רוֹקֵחַ).
If one forgot and did not eat the afikoman and did not remember until one washed one's hands or one said Let us bless, one eats the afikoman without the blessing of The One Who Brings forth. And if one had not remembered until they blessed the Blessing over the Sustenance, if they remembered prior to blessing Creator of the fruits of the vine, one should wash one's hands and bless The One Who Brings forth bread and then eat the afikoman. And if one had not remembered until after they had blessed Creator of the fruits of the vine, one should not eat the afikoman, and rely upon the matzah one ate amidst the meal, since all of it was guarded from the time of kneading. But, in a place where they are accustomed to do the guarding of the matzahs, it is a miztvah from the time of reaping, even if they hadn't remembered until after Hallel, one should wash one's hands and bless The One Who Brings forth bread, and then eat the afikoman. Rema: And [if one had gone back and ate the afikoman after having said the Grace After Meals], one should go back and bless upon the cup [of wine over the Grace After Meals] and one need not worry of adding to the cups. And if the afikoman is lost, one can eat an olive's-worth of another guarded matzah.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0