Ghazali on Neighbors: Good behavior is right of neighbors

Al-Ghazali reported: Ibn al-Muqaffa heard that some people complained of the many rats in his house. It was said to him, “If only you had a cat!” Ibn al-Muqaffa said, “I am afraid that the rats would hear the sound of the cat and flee to the houses of my neighbors, for then I would have loved for them what I do not love for myself.”

Al-Ghazali said, “Know that it is not only the right of the neighbors to be safe from harm, but rather potential harm. If the neighbor is also safe from harm, then his right is not fulfilled by that and it is not enough to avoid potential harm. Rather, he must be treated with kindness, good will, and virtuous conduct.”

Source: Iḥyāʼ Ulūm al-Dīn 2/213

عن الغزالي وبلغ ابن المقفع رحمه الله أَنَّ وشكا بعضهم كثرة الفأر في داره فقيل له لو اقتنيت هراً فقال أخشى أن يسمع الفأر صوت الهر فيهرب إلى دور الجيران فأكون قد أحببت لهم ما لا أحب لنفسي

قال الغزالي وَاعْلَمْ أَنَّهُ لَيْسَ حَقُّ الْجِوَارِ كَفَّ الْأَذَى فقط بل احتمال الأذى فإن الجار أيضاً قد كف أذاه فليس في ذلك قضاء حق ولا يكفي احتمال الأذى بل لابد من الرفق وإسداء الخير والمعروف

2/213 إحياء علوم الدين