It is narrated from Sayyiduna Suraqah bin Malik al-Mudliji (may Allah be pleased with him) that Quraysh had fixed a reward of forty uqiyahs for (the capture or killing of) the Messenger of Allah (peace and blessings be upon him) and Sayyiduna Abu Bakr (may Allah be pleased with him). He said: I was sitting (in the gathering of my people) when a man came to me and said: "The two men on whom Quraysh have set the reward have just passed near you at such-and-such a place." I went to my horse, which was grazing in the pasture, drove it off, took my spear and mounted it. I was dragging the lower end of the spear along the ground (so that its gleam would not be seen), fearing that the people living near the water might become my partners in the reward. When I saw the two of them, Sayyiduna Abu Bakr (may Allah be pleased with him) said: "A pursuer is seeking us." Then the Prophet (peace and blessings be upon him) turned and made this supplication: "Allahumma-kfinahu bima shi'ta" (O Allah, suffice us against him in whatever way You will). Sayyiduna Suraqah (may Allah be pleased with him) said: (Suddenly) my horse sank with me into the ground, even though I was on a hard piece of ground; I fell onto a stone and was overturned. Then I called out: "Pray to the One who has done to my horse what I see, (for) I think He alone can free it." And he made a covenant with him (peace and blessings be upon him) that he would not disobey him. He (peace and blessings be upon him) prayed and the horse came free. The Messenger of Allah (peace and blessings be upon him) asked: "Will you give this (intention) up for my sake?" I said: Yes. He (peace and blessings be upon him) said: "Then from here turn the people back, misleading them about us." And he (peace and blessings be upon him) took the coastal road along the sea. Sayyiduna Suraqah (may Allah be pleased with him) said: In the first part of the night I was their pursuer (enemy), and in the last part of the night I became their guard. He (peace and blessings be upon him) had said to me: "When we are settled in Madinah, if you wish to come to us, then come."
So when he (peace and blessings be upon him) came to Madinah, prevailed over the people of Badr and Uhud, and the people around him had accepted Islam, word reached me that he (peace and blessings be upon him) intended to send Sayyiduna Khalid bin al-Walid (may Allah be pleased with him) to Banu Mudlij. I came to him (peace and blessings be upon him) and said: "I appeal to you by (the old) favour." At this the people said: Be quiet! But the Messenger of Allah (peace and blessings be upon him) said: "Leave him; what does he want?" I said: I have learned that you want to send Khalid bin al-Walid to my people; I would like you to make peace with them, so that if their peers accept Islam they too will accept Islam with them, and if they do not accept Islam, the hearts of their people will not be hardened against them (the Muslims). So the Messenger of Allah (peace and blessings be upon him) took Sayyiduna Khalid bin al-Walid (may Allah be pleased with him) by the hand and said: "Go with him and do what I am telling you." So he went with him to Banu Mudlij and took a covenant from them that they would not help (the enemy) against the Messenger of Allah (peace and blessings be upon him), and that if Quraysh accepted Islam they too would become Muslims with them. On this occasion Allah Almighty revealed these verses: "They wish that you would disbelieve as they have disbelieved," until He said: "Except those who join a people between whom and you there is a treaty, or who come to you with their hearts restrained from fighting you or fighting their own people. And if Allah had willed, He would have given them power over you," up to His words: "Every time they are returned to temptation (fitnah), they fall headlong into it." Imam al-Hasan al-Basri (may Allah have mercy on him) said: Those whose hearts were restrained were Banu Mudlij; so whoever joined Banu Mudlij was considered a party to their covenant.
Al-Harith bin Muhammad bin Abi Usamah also recorded this narration, and Imam al-Bukhari recorded part of it (in Sahih al-Bukhari). Linguistically, "maslahah" means a frontier post or place where an armed detachment is stationed to watch the enemy; the word is derived from "silah" (weapons).