I prayed the afternoon prayer behind the Prophet, peace and blessings be upon him, in Medina. When he concluded the prayer, he rose swiftly and stepped over the people’s necks to one of his wives’ chambers. The people were alarmed by his haste. He then came out to them and saw that they were surprised by his haste, so he said: … and mentioned it.
The wording is from the first passage in the Ṣaḥīḥ; the first addition and the variant narration are from the first passage, while the second addition is from the third passage in the Ṣaḥīḥ.
The fourth passage contains only part of the story and includes nothing of the hadith under discussion.
It was also narrated by al-Nasāʾī (3/84), Aḥmad (4/7–8, 8, and 384), Ibn Abī ʿĀṣim in al-Āḥād wa-l-Mathānī (476 and 477), and al-Ṭabarānī in al-Muʿjam al-Kabīr (17/354/979), through several routes from ʿUmar ibn Saʿīd, with this chain. *
3595—“Indeed, I saw in a dream as though Gabriel were at my head and Michael at my feet. One of them said to the other, ‘Set forth a parable for him.’ He said: ‘Listen—may your ears hear—and understand—may your heart comprehend. The likeness of you and your Ummah is that of a king who established a dwelling, then built within it a house, then set a table therein, and then sent a messenger to invite the people to his food. Some of them responded to the messenger, while others ignored him. Allah is the King, the dwelling is Islam, the house is Paradise, and you, O Muhammad, are the messenger. Whoever responds to you enters Islam; whoever enters Islam enters Paradise; and whoever enters Paradise eats of what is in it.’”
Al-Tirmidhī narrated it (2860), and through his route of transmission, al-Ḥāfiẓ Ibn Ḥajar in Taghlīq al-Taʿlīq