Complex sentence: Thereafter, he left Fez to teach at al-Abiad, spending five years at the village.
Split into simpler sentences: Thereafter, he left Fez to teach at al-Abiad village. He spent five years at the village.