It was recorded by al-Bukhari (3207), Muslim (1/103–104), and Abu Awanah (1/116), whose wording is cited here.
Qatadah explicitly stated in al-Bukhari’s version that he heard it directly. This clearly shows that he was not asleep; rather, he was between sleep and wakefulness when the three men came to him and opened his abdomen—peace and blessings be upon him.
3957—“I command you to do four things and forbid you from four: faith in Allah.” He then explained it to them, saying: “To testify that there is no god worthy of worship but Allah and that Muhammad is the Messenger of Allah”—and he held up one finger—“to establish the prayer, to give zakat, and to pay one-fifth of the spoils you acquire. And I forbid you from dubbāʾ (gourd vessels), ḥantam (glazed earthenware jars), naqīr (hollowed palm-trunk vessels), and muqayyar (pitch-coated vessels).”
It was recorded by al-Bukhari (1/129/53, Fath al-Bari), Muslim (1/35), Abu Dawud (4/94/3692), al-Tirmidhi (2611), al-Nasai (2/272), and al-Bayhaqi in al-Sunan (6/294–295 and 303), Shuʿab al-Iman (1/50–51), and Dalaʾil al-Nubuwwah (3/323–324), all through the route of Abu Jamrah, from Ibn Abbas, who said:
A delegation of Abd al-Qays came to the Messenger of Allah, peace and blessings be upon him, and said, “Messenger of Allah, we are a tribe of Rabiʿah, and the disbelievers of Mudar stand between us and you. Thus, we cannot reach you except during the sacred month. So command us to do something that we may act upon and call those we have left behind to it.” He said: … and then mentioned it.
It has a supporting narration from the hadith of Abu Saʿid al-Khudri with similar wording.
It was recorded by Muslim (1/36), al-Bayhaqi in Dalaʾil al-Nubuwwah (5/326), and Ahmad (3/22/23). *