The Talmud states that Abraham observed the entire Torah, including rabbinic enactments such as eruv tavshilin, deriving this from the phrase 'my Torah' in Genesis 26:5. This is a central Talmudic locus for the claim that the patriarchs kept all of the Torah.
אָמַר רַב: קִיֵּים אַבְרָהָם אָבִינוּ כָּל הַתּוֹרָה כּוּלָּהּ, שֶׁנֶּאֱמַר: ״עֵקֶב אֲשֶׁר שָׁמַע אַבְרָהָם בְּקוֹלִי וְגוֹ׳״. אֲמַר לֵיהּ רַב שִׁימִי בַּר חִיָּיא לְרַב: וְאֵימָא שֶׁבַע מִצְוֹת? הָא אִיכָּא נָמֵי מִילָה! וְאֵימָא שֶׁבַע מִצְוֹת וּמִילָה! אֲמַר לֵיהּ: אִם כֵּן ״מִצְוֹתַי וְתוֹרוֹתָי״ לְמָה לִי? אָמַר (רַב), וְאִיתֵּימָא רַב אָשֵׁי: קִיֵּים אַבְרָהָם אָבִינוּ אֲפִילּוּ עֵירוּבֵי תַבְשִׁילִין, שֶׁנֶּאֱמַר: ״תּוֹרוֹתָי״, אַחַת תּוֹרָה שֶׁבִּכְתָב וְאַחַת תּוֹרָה שֶׁבְּעַל פֶּה.
Apropos the previous statement, the Gemara cites that Rav said: Abraham our Patriarch fulfilled the entire Torah before it was given, as it is stated: “Because [ekev] Abraham hearkened to My voice and kept My charge, My mitzvot, My statutes and My Torahs” (Genesis 26:5). Rav Shimi bar Ḥiyya said to Rav: And say that the verse means that he fulfilled only the seven Noahide mitzvot and not the entire Torah. The Gemara asks: But isn’t there also circumcision that Abraham clearly observed, which is not one of the Noahide laws? Apparently, Abraham fulfilled more than just those seven. The Gemara asks: And say that he fulfilled only the seven mitzvot and circumcision. Rav said to him: If so, why do I need the continuation of the verse, that Abraham kept: My mitzvot and My Torah? That is a clear indication that he fulfilled mitzvot beyond the seven Noahide mitzvot, and apparently fulfilled the entire Torah. Rav said, and some say Rav Ashi said: Abraham our Patriarch fulfilled the entire Torah, even the mitzva of the joining of cooked foods, a rabbinic ordinance instituted later, as it is stated: My Torahs. Since the term is in the plural, it indicates that Abraham kept two Torahs; one, the Written Torah, and one, the Oral Torah. In the course of fulfilling the Oral Torah, he fulfilled all the details and parameters included therein.