It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever performs Hajj and then visits me after my death, it is as though he visited me during my lifetime." Abu Ya'la and al-Bayhaqi in his Sunan recorded this hadith with a chain that includes a narrator named Layth bin Abi Sulaym, whom the majority (of hadith scholars) have declared weak.
Hadith Takhrij«رواه أبو يعلى والبيهقي في سننه بسند فيه ليث بن أبي سليم، والجمهور على ضعفه» «أخرجه المعجم الكبير للطبراني برقم: 13496، وأخرجه المعجم الأوسط للطبراني برقم: 3400، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 5239»