It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that he said: "Whoever from the creation of Allah greets you, return his greeting, even if he is a Magian (fire-worshipper), for Allah Almighty says: 'And when you are greeted with a greeting, greet with one better than it' (this command is for the Muslims), 'or return it (in like manner)' (and this command is for the polytheists)."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الأدب وغيره / 5298
Hadith Gradingمحدثین:سكت عنه البوصيري، موقوف؛ إسناده ضعيف؛ لاضطراب رواية سماك عن عكرمة
Hadith Takhrij«سماك بن حرب: صدوق، وروايته عن عكرمة خاصة مضطربة (التقريب، من الحفظ)؛ حميد الرؤاسي والحسن بن صالح ثقتان»