Umayr bin Wahb was one of the leaders of the Quraish of Mecca who used to molest the Holy Prophet and his companions while at Mecca, and caused them considerable distress.
In the battle of Badr many of the relatives of Umayr were killed, and one of his sons Wahb was taken prisoner.
After the battle of Badr while one day Abu Sufiyan and Umayr sat in the Ka'bah at Mecca and exchanged views about the battle of Badr, Abu Sufiyan referring to the Quraish discomfiture said, "By God, there is no good in life now that they are dead."
Umayr said. "You are right. Were it not for a debt outstanding against me which I cannot discharge, and a family I cannot afford to leave unprovided for, I would ride to Madina and kill the Prophet."
Abu Sufiyan said, "If you have such noble thoughts I undertake to discharge your debt. I also undertake to take care of your family, and all that I have shall be theirs."
The pact was struck, and Umayr undertook to ride to Madina and kill the Prophet. Umayr took his sword, sharpened it, smeared it with poison and rode to Madina.
One day while in the Prophet's mosque at Madina, Umar was talking with some of his friends about the battle of Badr and mentioning how God had honoured them in giving them victory over the Quraish, he suddenly saw Umayr alight at the door of the mosque, girt with his sword.
Seeing him, Hadarat Umar said, "This dog the enemy of God is Umayr bin Wahb. By God he has come with some evil purpose."
Then Umar went to the Holy Prophet and said "O Prophet of God! this enemy of God, Umayr bin Wabb, has come girt with his sword." The Holy Prophet asked Umar to let Umayr come in.
Umar came to Umayr, and seizing his bandoleer he gripped him round the neck with it. He called the Muslims who were in the mosque, and asked them to sit around the Holy Prophet and watch the rascal Umayr carefully for he was not to be trusted.
When the Holy Prophet saw Umar grasping Umayr's bandoleer round his neck he told Umar to leave Umayr and let him advance.
Umayr came up and according to the pagan way said, "Good morning."
The Holy Prophet said, "God has honoured us with a better form of greeting O Umayr. It is 'Salaam', thc greeting of the inhabitants ot the paradise."
After a while, the Holy Prophet ashed Umayr what had brought him to Madina.
Umayr said, "I have come about the release of my son."
"Then why have you a sword round your neck," asked the Holy Prophet.
Umayr said, "God damn these swords. Have they done us any good?"
"What has brought you?" asked the Holy Prophet again.
Umayr said that he had come to secure the release of his son.
The Holy Prophet said, "Did you not make a pact with Abu Sufiyan? Did he not undertake the responsibility to discharge your debt and look after your family? Did you not sharpen your sword and smear it with poison?"
"That's enough" said Umayr, "All this was secret known to no one. God alone must have told you of that. You are verily the Prophct of God".
Thereupon Umayr declared the article of faith and was converted to Islam. His son was released, and he too was converted to Islam.
Thereafter Umayr returned to Mecca, and he called the Quraish to Islam for that was the true faith.