He was wise
What will be your reaction towards someone rejecting and belittling something you really love?
What if you were a religious man and someone came and intentionally defiled the place of your worship in such a rude way?
No doubt that you will be very angry and rush to punish him. Muhammad did not do so, he had complete control over his reactions by judging wisely before doing any action. The following story proves that he dealt with every situation with such farsightedness and breadth of vision:
A Bedouin came from the desert who had no contact with the new city (Madinah) that Muhammad (PBUH) had built along his companions in the new capital.
This Bedouin acted in a very shocking manner. That is what this man had done; he urinated in the mosque in front of Prophet Muhammad and his companions in the most sacred place to them. It was a horrible scene, the companions could not control themselves and they yelled at him to stop what he was doing. Even though such incident took only seconds, Prophet Muhammad's reaction did not precede his brain.
During this split second he had analyzed the Bedouin’s personality, which did such wrong act in the place of his worship and where he runs the state’s affairs. The Prophet realized that this Bedouin is uneducated and his action holds no hostile intention.
It was a backward act for the culture of cleanliness and decency that Muhammad had built in his capital. He ordered his companions to leave the Bedouin without scolding him.
After the Bedouin had finished, Muhammad (PBUH) came up to him and informed him that he can not do such thing in this place. The Bedouin was so touched by the kindness of the Prophet, how he taught him with leniency and was impressed by his manners and said "O Allah have mercy on me and Muhammad and no one else".