A vendor, or any person claiming under him shall not at law recover against a vendee, or those claiming under him lands sold by such vendor to such vendee, when there is a writing stating the purchase, and the terms thereof, signed by the vendor or his agent.