It is narrated from Sayyiduna Jundub (may Allah be pleased with him) that he heard the Prophet (peace and blessings be upon him), five days before his (peace and blessings be upon him) death, say: "Indeed I have had brothers and friends among you, and I declare myself free before Allah of having any khalil (the most intimate, heartfelt friend) among you. If I were to take anyone from my Ummah as my khalil, I would take Sayyiduna Abu Bakr (may Allah be pleased with him) as my khalil. And indeed my Lord has taken me as His khalil, just as He took Sayyiduna Ibrahim (peace be upon him) as His khalil. Beware! Those who came before you used to take the graves of their prophets as places of prostration. Beware! I forbid you from doing that."
Hadith Referenceالمعجم الأوسط / باب العين / 4357
Hadith Takhrij«قال الدارقطني: يرويه زيد بن أبي أنيسة واختلف عنه فرواه عبيد الله بن عمرو عن زيد بن أبي أنيسة عن عمرو بن مرة عن عبد الله بن الحارث والأول أشبه بالصواب «العلل الواردة في الأحاديث النبوية، ج 13، ص 481»» «أخرجه مسلم فى «صحيحه» برقم: 532، وابن حبان فى «صحيحه» برقم: 6425، والحاكم فى «المستدرك» برقم: 4040، والنسائي فى «السنن الكبرى» برقم: 11058، وابن أبي شيبة فى «مصنفه» برقم: 7628، والطبراني فى «الكبير» برقم: 1686»