Ibn Ishaq said about the story of Tabuk: At the place called al-Thaniyyah the hypocrites intended to kill the Prophet (peace and blessings be upon him). Allah Almighty informed him (peace and blessings be upon him) of this, so he (peace and blessings be upon him) moved away from al-Thaniyyah and said to his two companions, Hudhayfah and Ammar (may Allah be pleased with them both): "Do you know what the people intended?" They said: Allah and His Messenger (peace and blessings be upon him) know best. He (peace and blessings be upon him) said: "They intended to strike me down at al-Thaniyyah." The two of them said: O Messenger of Allah (peace and blessings be upon him)! When the people were gathering around you there, had you ordered us, we would have killed them. He (peace and blessings be upon him) said: "I did not like that people should say that Muhammad (peace and blessings be upon him) is having his own companions killed."
Ibn Ishaq said: Then Husayn bin Numayr was summoned and it was said to him: Woe to you, why were you doing this? He said: By Allah! I was certain that you (peace and blessings be upon him) would not find out, but Allah informed you (peace and blessings be upon him), and I have come to know it, and today I bear witness that you are the Messenger of Allah (peace and blessings be upon him). Had it not been for this, I would never have believed in you. So he (peace and blessings be upon him) forgave him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المرتد / 16839