Allah, the Exalted, has said:
٣٩ - باب حق الجار والوصية به
Allah, the Exalted, has said:
Worship Allāh and associate nothing with Him, and to parents do good, and to relatives, orphans, the needy, the near neighbor, the neighbor farther away, the companion at your side,1 the traveler, and those whom your right hands possess. Indeed, Allāh does not like those who are self-deluding and boastful,
On the authority of Ibn ʿUmar and ʿĀʾishah (may Allah be pleased with them), who both said: The Messenger of Allah (ﷺ) said: "Gabriel kept on enjoining me concerning the neighbour, until I thought he would make him an heir." Agreed upon.
On the authority of Abū Dharr (may Allah be pleased with him), who said: The Messenger of Allah (ﷺ) said: "O Abū Dharr, when you cook a broth, add plenty of water to it, and look after your neighbours." Muslim narrated it. And in another of his narrations, on the authority of Abū Dharr, who said: My dear friend (ﷺ) enjoined me: "When you cook a broth, add plenty of water to it, then look to a household among your neighbours and give them some of it in a goodly manner."
On the authority of Abū Hurayrah (may Allah be pleased with him): that the Prophet (ﷺ) said: "By Allah, he does not believe! By Allah, he does not believe! By Allah, he does not believe!" It was asked: Who, O Messenger of Allah? He said: "The one whose neighbour is not safe from his mischief!" Agreed upon. And in a narration of Muslim: "He will not enter Paradise whose neighbour is not safe from his mischief." "Al-bawāʾiq" means harms and evils.
On his authority, who said: The Messenger of Allah (ﷺ) said: "O Muslim women, let no woman neighbour disdain (a gift) for her woman neighbour, even if it be the trotter of a sheep." Agreed upon.
On his authority: that the Messenger of Allah (ﷺ) said: "Let no neighbour prevent his neighbour from fixing a wooden beam into his wall." Then Abū Hurayrah would say: Why do I see you turning away from it? By Allah, I shall keep casting it upon your shoulders (pressing it upon you). Agreed upon. It was narrated as "khashabahu" in the possessive (iḍāfah) and the plural, and it was narrated as "khashabatan" with tanwīn in the singular. And his saying, "Why do I see you turning away from it," means: from this Sunnah.
On his authority: that the Messenger of Allah (ﷺ) said: "Whoever believes in Allah and the Last Day, let him not harm his neighbour; and whoever believes in Allah and the Last Day, let him honour his guest; and whoever believes in Allah and the Last Day, let him say something good or remain silent." Agreed upon.
On the authority of Abū Shurayḥ al-Khuzāʿī (may Allah be pleased with him): that the Prophet (ﷺ) said: "Whoever believes in Allah and the Last Day, let him be good to his neighbour; and whoever believes in Allah and the Last Day, let him honour his guest; and whoever believes in Allah and the Last Day, let him say something good or remain silent." Muslim narrated it in this wording, and al-Bukhārī narrated part of it.
On the authority of ʿĀʾishah (may Allah be pleased with her), who said: I said: O Messenger of Allah, I have two neighbours; to which of the two shall I send a gift? He said: "To the one whose door is nearer to you." Al-Bukhārī narrated it.
On the authority of ʿAbdullāh b. ʿUmar (may Allah be pleased with them both), who said: The Messenger of Allah (ﷺ) said: "The best of companions in the sight of Allah, the Exalted, is the best of them to his companion; and the best of neighbours in the sight of Allah, the Exalted, is the best of them to his neighbour." Al-Tirmidhī narrated it and said: "A good (ḥasan) ḥadīth."