Reference for Ketubot 165:3
כתב לה דין ודברים אין לי בנכסיך ובפירותיהן ובפירי פירותיהן בחייך ובמותך אינו אוכל פירות בחייה ואם מתה אינו יורשה רשב"ג אומר אם מתה יירשנה מפני שמתנה על מה שכתוב בתורה וכל המתנה על מה שכתוב בתורה תנאו בטל:
If he wrote, “I have no claim whatsoever upon your property, its produce and the produce of its produce during your lifetime and after your death”, he may neither enjoy it produce dies. Rabban Shimon ben Gamaliel says: when she dies he inherits her because [by his declaration] he is making a condition which is contrary to what is written in the Torah and whenever a man makes a condition which is contrary to what is written in the Torah, his condition is null and void.
Explore reference for Ketubot 165:3. In-depth commentary and analysis from classical Jewish sources.