משנה: הָאוֹמֵר אִישׁ פְּלוֹנִי יִירָשֵׁנִי בִּמְקוֹם שֶׁיֵּשׁ בַּת בִּתִּי תִירָשֵׁינִי בִּמְקוֹם שֶׁיֵּשׁ בֵּן לֹא אָמַר כְּלוּם שֶׁהִתְנָה עַל מַה שֶׁכָּתוּב בָּתּוֹרָה. רִבִּי יוֹחָנָן בֶּן בְּרוֹקָה אוֹמֵר אִם אָמַר עַל מִי שֶׁהוּא רָאוּי לִירוּשָׁה דְּבָרָיו קַיָימִין וְעַל מִי שֶׁאֵינוֹ רָאוּי לִירוּשָׁה אֵין דְּבָרָיו קַיָימִין.
MISHNAH: One who says, Mr. X shall inherit from me while he has a daughter, or, my daughter shall inherit from me while he has a son, did not say anything since he stipulated against what is written in the Torah. Rebbi Joḥanan ben Beroqah said, if he said that about anybody who can be his heir, his words stand; about anybody who cannot be his heir, his words do not stand.