How did trade and the pilgrimage make the city important to the Arabs?