So yes, “The Devil and Daniel Webster” wasn’t written until the 1940s, but I would like to think there was a proto-version of this story kicking around that Abe would have known about.
The best court case that uses “The Devil and Daniel Webster” as an unofficial precedent is this one.
–Geoff