Complex sentence: When arriving in a new village, he is taken on as an Islamic teacher, and in his sermons Saleh--hoping that his students will give him some goods--preaches the importance of charity.
Split into simpler sentences: When arriving in a new village, he is taken on as an Islamic teacher. In his sermons Saleh, hoping that his students will give him some goods, preaches the importance of charity.