qnli question: Who was named as a teacher at the second madrasa, housed in a mosque? sentence: Hazrat 'Ubada bin Samit was appointed there by Hazrat Muhammad as teacher and among the students.[citation needed]