Complex sentence: Students went to masters who taught them and upon perfection gave them ijazah (permission) which acted as the certification of completion of education.
Split into simpler sentences: Students went to masters who taught them. Upon completion of their study, they received ijazah (permission) which acted as the certification of education.