مكتوب على باب الجنة: محمد رسول الله صلى الله عليه وسلم، علي أخو رسول الله، قبل أن تخلق السماوات والأرض بألف سنة.
Inscribed on the door of Jannat (are the following words), “Muhammad, the Messenger of Allah salla Llahu ‘alayhi wa sallam; ‘Ali, the brother of the Messenger of Allah,” one thousand years before the creation of the Heavens and the earth.
This hadith is narrated from Jabir, Ibn ‘Abbas, and ‘Ali radiya Llahu ‘anhum.
Al Tabarani and others narrate — from Zakariyya ibn Yahya al Kisaʾi — Yahya ibn Salim narrated to us (he was a truthful man) — Ash’ath ibn ‘Amm al Hassan ibn Salih (he was preferred over al Hassan ibn Salih) — Mis’ar ibn Kidam narrated to us — from ‘Attiyah al ‘Aufi — from Jabir ibn ‘Abdullah who said, “The Messenger of Allah salla Llahu ‘alayhi wa sallam said…”
Zakariyya ibn Yahya al Kisaʾi is matruk and accused of lying.
Yahya ibn Salim al Kufi is da’if (weak).
Ash’ath ibn ‘Amm al Hassan ibn Salih is da’if (weak).
I could not trace Sa’id ibn Ash’ath Abu ‘Uthman.
Al Qati’i and others (also) narrate this with a chain of transmission that is muzlim (murky). It contains the following defects:
However, Hamzah enjoys a tabi’ (parallel) narration. But, it contains majahil (unknown narrators). This hadith is reported by Ibn Jumay’.
Al Albani ruled this hadith to be a fabrication.
Al Khatib narrates this version of the hadith with a chain of transmission that is saqit (wholly unreliable). The wording is as follows: “From Ibn ‘Abbas who said that the Messenger of Allah salla Llahu ‘alayhi wa sallam said, ‘The night I was taken to the Heavens, I saw inscribed on the Door of Jannat (the following words): ‘La ilaha illa Allah Muhammad Rasul Allah—’Ali is the beloved of Allah; Hassan and Hussain are the choicest of Allah; Fatimah is the best of Allah; may the curse of Allah be upon the one who hates them.’”
May Allah shower His mercy upon al Dhahabi and be kind towards him on account of what he said immediately after this hadith, “Yes, by Allah; may the curse of Allah be upon the one who fabricated this.”
Al Khatib says this hadith with this chain of transmission is munkar (unacceptable).
Ibn Hammawayh al Hulwani is accused of fabricating hadith.
The chain of transmission also contains the narrator Muhammad ibn Ishaq. His name is Muhammad ibn Ishaq ibn Mihran Abu Bakr Shamukh. He is da’if (weak).
The following people mention this hadith in their work on fabrications: al Dhahabi, al Suyuti, Ibn ‘Iraq, and al Albani.
Al Daylami narrates this version of the hadith, as quoted by al Suyuti. There are five narrator I could not trace. Perhaps one of them is the problem.
In short, the hadith is a fabrication and a lie in all of its chains of transmission.
 Al Tabarani: al Mujam al Awsat, 5/5498.
 Al Khatib: al Muttafiq wa al Muftariq, 1/260.
 Al Qati’i: Zawaʾid al Fadaʾil, 2/1134.
 Ibn Jumay’: Mujam al Shuyukh, hadith no. 143.
 Al Albani: Silsilat Al Ahadith al Da’ifah, 10/4910, 12/5684.
 Al Khatib: Tarikh Baghdad, 1/259.
 Al Dhahabi: Mizan al I’tidal, 3/112.
 Al Khatib: Tarikh Baghdad, 11/325.
 Al Dhahabi: Mizan al I’tidal, 3/478; al Suyuti: al Ziyadat ‘ala al Mawdu’at, 1/277; Ibn ‘Iraq: Tanzih al Shari’ah, 1/404; al Albani: Silsilat al Ahadith al Da’ifah, 13/6298.
 Al Suyuti: al Ziyadat ‘ala al Mawdu’at, 1/277.