Before World War II about 40,000 Jews lived in Lublin .