I came to the Prophet ﷺ while he was reclining on a cloak in the shade of the Kaabah. We had been suffering severely at the hands of the polytheists, so I said, "Will you not call upon Allah for us?"He sat up, his face flushed red, and said, "Among those before you, a man would be combed with iron combs that tore away the flesh and sinew from his bones, yet this would not turn him from his religion. A saw would be placed upon the parting of his head and he would be split in two, yet this would not turn him from his religion. Allah will surely bring this affair to completion, until a rider will travel from Sana to Hadramawt fearing none but Allah."Bayan added in his version, "and the wolf for his sheep."
أتيت النبي ﷺ وهو متوسد بردة، وهو في ظل الكعبة- وقد لقينا من المشركين شدة- فقلت: ألا تدعو الله؟ فقعد وهو محمر وجهه فقال: لقد كان من قبلكم ليمشط بمشاط الحديد، ما دون عظامه من لحم أو عصب، ما يصرف ذلك عن دينه، ويوضع المنشار على مفرق رأسه فيشق باثنين، ما يصرف ذلك عن دينه، وليتمن الله هذا الأمر حتى يسير الركب من صنعاء إلى حضرموت ما يخاف إلا الله. زاد بيان: والذئب على غنمه.
Bukhari narrated it in "Virtues of the Ansar" (3852), from Humaydi, who said, Sufyan narrated to us, who said, Bayan and Ismail narrated to us, saying, "We heard Qubaysa say, 'I heard Khabbab say,'" then he related it.What has been said, that it was revealed during the Battle of Ahzab, has not been established. This is what Wahidi mentioned in "Asbab al-Nuzul" (p. 60), from Qatada and Suddi, who said, "This verse was revealed during the Battle of Khandaq, when the Muslims were afflicted by the exhaustion, hardship, heat, fear, cold, difficulty of living, and various forms of harm that befell them, and it was just as Allah Almighty said, "and the hearts reached the throats" [Ahzab 33:10].Abdul-Razzaq reported in his "Tafsir" (1/332), from Maamar, from Qatada, regarding Allah's saying, "But no such [trial] has yet come to you as came to those who passed on before you. They were touched by poverty and hardship" [Baqarah 2:214], that he said, "It was revealed on the day of Ahzab," then he related something similar.This is the view held by most of the commentators, though nothing with a connected chain has been established as sahih on this matter.