`Sayyiduna Anas (may Allah be pleased with him) narrates,` Before the mosque was built, the Prophet Muhammad (peace be upon him) used to offer prayers in a sheepfold.