It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said to me: "O Ali! Eat olive oil and apply it (to the body), for whoever anoints himself with olive oil, Satan will not come near him for forty nights."
Al-Harith bin Abi Usamah recorded this hadith in his Musnad; however, its chain contains the narrators Hammad bin Amr and al-Sari bin Khalid, because of whom the scholars of hadith have declared this report severely weak, indeed mawdu' (fabricated).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الأطعمة والأشربة / 2416
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :لا يصح. » «أخرجه المطالب العالية لابن حجر برقم: 77»