Proponents of barriers in mosques tend to argue that the Prophet Muhammad 's wives , who inhabited a series of rooms attached to the main mosque at Medina , spoke to the faithful from behind a tentlike curtain .