This picture actually shows a Madrasa in Yoruba to the South. However it illustrates nicely the importance of memorising extracts of the Quran to Muslims. Consequently literacy was an important aspect of Muslim life.
Charles Orr's Memoirs Volume 5b