The Messenger of Allah ﷺ said, "Seek refuge with Allah from a bad neighbor in your permanent place of residence, for the desert neighbor moves away from you."
قال رسول الله ﷺ: تعوذوا بالله من جار السوء في دار المقام؛ فإن جار البادية يتحول عنك.
Nasai narrated it (5502), and Ibn Hibban graded it sahih (1033), both by way of Muhammad bin Ajlan, from Saeed bin Abu Saeed Maqburi, from Abu Hurairah, who related it. Its chain of transmission is hasan because of Muhammad bin Ajlan, for he is hasan al-hadith, and it also has a corroborating narration. Ahmad narrated it (8553), and Hakim graded it sahih (1/532), both by way of Abdul-Rahman bin Ishaq, from Saeed Maqburi, from Abu Hurairah, from the Prophet ﷺ, who said, "Seek refuge in Allah from the harm of a resident neighbor, for a traveler's neighbor, if he wishes to part, will part."Hakim said, "This is a sahih hadith according to the criterion of Muslim." I say, Abdul-Rahman bin Ishaq is the one from Madinah about whom there is some minor criticism, which lowers his hadith to the level of hasan. His saying "yazayil" means "to part" or "separate."Tabarani narrated it in Dua (1339) by way of Hasan bin Hammad Hadrami, who said, Abu Khalid Ahmar told us, from Muhammad bin Ajlan, from Saeed Maqburi, from Abu Hurairah, who said, Among the Messenger of Allah's ﷺ prayers was, "O Allah, I seek refuge in You from a bad neighbor, from a spouse who ages me before old age, from a child who becomes a burden upon me, from wealth that becomes a punishment upon me, and from a treacherous friend whose eye watches me and whose heart observes me, if he sees good he buries it, and if he sees evil he broadcasts it."This is how Hasan bin Hammad Hadrami narrated it, from Abu Khalid Ahmar, as a connected chain. But Hannad bin Sari differed from him, narrating it in Zuhd (1038), as did Abdullah bin Saeed Ashaj in his Juz (69), both of them from Abu Khalid Ahmar as a disconnected chain (mursal), without mentioning "Abu Hurairah" in the chain of transmission.Hasan bin Hammad Hadrami is truthful (saduq), while Hannad bin Sari and Abdullah bin Saeed Ashaj are among the reliable memorizing scholars (thiqat huffaz), so the mursal version is more sound.