Schwein haben
to get lucky; to have a stroke of luck
Origin
Origin not firmly settled; most often traced to the medieval custom of giving the last-place finisher of a contest a pig as a consolation prize - attested in Sebastian Brant's "Ship of Fools" (1494).
Building blocks
Words in this expression
Examples
Bei dem ist passiert – da hast du gehabt!
Nothing happened in the crash — you really got lucky there!