Literally, “(he) laughs well who laughs last.” Compare French rira bien qui rira le dernier.
ride bene chi ride ultimo