Judicial matters and law-suits were settled...
Judicial matters and law-suits were settled, and punishments were awarded to the offenders in the mosque, and it was, for all intents and purposes, a court of law where the complaints of the people were settled. Furthermore, the Prophet used to deliver his stirring speeches there to make the people perform jihad and campaign against infidelity.
Possibly one of the secrets of combination of religious and educational matters in the mosque was that the great leader of Islam desired to show it practically that knowledge and faith are complementary to each other, and if a place is a centre of faith, it must also be a centre of knowledge and wisdom.
And if the judicial and other affairs including matters relating to jihad were decided in the mosque it was for the reason that he wanted to make it clear that his religion is not only spiritual which should have nothing to do with material matters, it is a religion which, while inviting people to piety and faith, does not also ignore the worldly matters and social welfare. This harmony (between knowledge and faith) is the motto of the Muslims even today.
When educational centres with a special shape were set up later, the schools and universities were always established by the side of Jami' Masjids (central mosques) so as to prove to the world that these two factors of prosperity are not separate from each other. The Story Of 'Ammar The place where the Prophet's camel bent its knees was purchased for ten diners for the construction of the mosque.
All the Muslims participated in its construction and in providing materials for it, and even the Prophet collected stones along with others. Usayd bin Huzayr went forward and said: "O Prophet of Allah! Permit me to carry it (the stone)". The Prophet said: "Go and bring another''. In this manner he showed a glimpse of his sublime character. He said: "I am a practical man. I am a man of action and not of words only".
On that occasion Muslim read out a couplet meaning: "If we sit and the Prophet works, it will be a source of deviation and adversity for us". While engaged in work the Prophet and the Muslims uttered these sentences: "Real life is the life of the Hereafter. O Allah! Be kind to the Ansar and the Muhajirs". Uthman bin Maz'un was very particular about the neatness of his dress and wished to keep it clean.
He did not therefore, participate in the construction of the mosque, lest his dress should become soiled.