It was narrated from 'Abdullah bin Mas'ood (رضي الله عنه): "Amr said: 'Abdullah said:
The Messenger of Allah (ﷺ) asked me to come with him, so we set out until I came to such and such a place. He drew a line for me and said to me: "Stay there, within this line, and do not come out. If you come out you will perish.” So I stayed within it. The Messenger of Allah (ﷺ) went on, as far as one could throw a stone or a little further - or words to that effect. Then he mentioned the shapes of figures as if they were black people; they were not wearing any clothes but I could not see their private parts, and they were tall and slim. They came and started climbing on the Messenger of Allah (ﷺ), and the Prophet of Allah (ﷺ) started reciting Qur'an to them. He said: And they started coming and going around me, getting in my way. 'Abdullah said: And I got very scared of them, so I sat down - or words to that effect. When dawn came, they began to leave - or words to that effect. Then the Messenger of Allah (ﷺ) came, looking drawn and tired, or almost ill because of their climbing over him. He said: "I feel very tired" - or words to that effect. The Messenger of Allah (ﷺ) put his head in my lap - or words to that effect. Then these figures came, wearing long white garments - or words to that effect. The Messenger of Allah (ﷺ) had gone to sleep. ‘Abdullah said: And I felt more afraid of them than I had the first time. ('Arim said in his hadeeth) they said to one another. This slave of Allah has been given something good - or words to that effect - his eyes are sleeping or his eye is sleeping - or words to that effect - but his heart is awake. Then they said to one another: Let us try to find a likeness for him - or words to that effect. They said to one another: Coin for us a likeness and we will interpret it, or we will coin a likeness and you interpret it. They said to one another. His likeness is that of a leader who builds a fortified structure. Then he invites people to come and eat - or words to that effect. And whoever does not come and eat his food, or who does not follow him, he punishes him severely - or words to that effect. Others said: As for the leader, he is the Lord of the Worlds. As for the structure, it is Islam; the food is Paradise and he is the caller: whoever follows him will be in Paradise - or words to that effect. And whoever does not follow him will be punished - or words to that effect. Then the Messenger of Allah (ﷺ) woke up and said: “What did you see, O Ibn Umm ‘Abd?” ’Abdullah said: I saw such and such. The Prophet (ﷺ) said: “Nothing of what they said was hidden from me.” The Prophet of Allah (ﷺ) said: “They are a group of the angels" or he said, "some of the angels, or whatever Allah willed.”