Mr. Rajab spent his life fighting for greater political freedoms in his home country, undeterred by years in prison. He died in exile.