Sword of Sharpness
Weapon (Glaive, Greatsword, Longsword, or Scimitar), very rare, requires attunement · 2024 rules, SRD 5.2
When you attack an object with this magic weapon and hit, maximize your weapon damage dice against the target. When you attack a creature with this weapon and roll a 20 on the d20 for the attack roll, that target takes an extra 14 Slashing damage and gains1 Exhaustion level.
Also in the 2014 rules (SRD 5.1).