When Abu Salama died, I said, "He is a stranger and has died in a strange land," and I burst into tears. A woman came up from the highlands intending to join me in mourning, when the Messenger of Allah ﷺ said, "Do you want to admit Shaytan into a house from which Allah has driven him out?"So I refrained from weeping over him.
حدثنا سفيان بن عيينة عن ابن أبي نجيح عن أبيه عن عبيد بن عمير
لما مات أبو سلمة قلت غريب ومات بأرض غربة فأفضت بكاء فجاءت امرأة تريد أن تسعدني من الصعيد فقال رسول الله ﷺ تريدين أن تدخلي الشيطان بيتا قد أخرجه الله عز وجل منه قالت فلم أبك عليه
Its isnad is sahih. Ibn Abu Najeeh is Abdullah, and he is trustworthy, his hadith being found in the collections of all the major compilers. His father, Yasar, was a Thaqafi and also trustworthy, his hadith being found in Muslim 2/631, number 918, in the Book of Funerals, and in Humaydi 1/139, number 291.