In prison, he went through a transformation and ended up joining the Nation of Islam, an African American movement that combined Islam with black nationalism. Malcolm quit smoking and gambling.