The Quran tells you to treat neighbors well, near and far (4:36). The Prophet ﷺ said Gabriel urged kindness to neighbors so often that he thought they would inherit. He said a person whose neighbor is not safe from his harm does not truly believe.
From the Quran
۞ وَٱعْبُدُوا۟ ٱللَّهَ وَلَا تُشْرِكُوا۟ بِهِۦ شَيْـًٔا ۖ وَبِٱلْوَٰلِدَيْنِ إِحْسَـٰنًا وَبِذِى ٱلْقُرْبَىٰ وَٱلْيَتَـٰمَىٰ وَٱلْمَسَـٰكِينِ وَٱلْجَارِ ذِى ٱلْقُرْبَىٰ وَٱلْجَارِ ٱلْجُنُبِ وَٱلصَّاحِبِ بِٱلْجَنۢبِ وَٱبْنِ ٱلسَّبِيلِ وَمَا مَلَكَتْ أَيْمَـٰنُكُمْ ۗ إِنَّ ٱللَّهَ لَا يُحِبُّ مَن كَانَ مُخْتَالًا فَخُورًا ﴿36﴾
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,[186] the traveler, and those whom your right hands possess. Indeed, Allāh does not like those who are self-deluding and boastful,
An-Nisa 4:36۞ لَّيْسَ ٱلْبِرَّ أَن تُوَلُّوا۟ وُجُوهَكُمْ قِبَلَ ٱلْمَشْرِقِ وَٱلْمَغْرِبِ وَلَـٰكِنَّ ٱلْبِرَّ مَنْ ءَامَنَ بِٱللَّهِ وَٱلْيَوْمِ ٱلْـَٔاخِرِ وَٱلْمَلَـٰٓئِكَةِ وَٱلْكِتَـٰبِ وَٱلنَّبِيِّـۧنَ وَءَاتَى ٱلْمَالَ عَلَىٰ حُبِّهِۦ ذَوِى ٱلْقُرْبَىٰ وَٱلْيَتَـٰمَىٰ وَٱلْمَسَـٰكِينَ وَٱبْنَ ٱلسَّبِيلِ وَٱلسَّآئِلِينَ وَفِى ٱلرِّقَابِ وَأَقَامَ ٱلصَّلَوٰةَ وَءَاتَى ٱلزَّكَوٰةَ وَٱلْمُوفُونَ بِعَهْدِهِمْ إِذَا عَـٰهَدُوا۟ ۖ وَٱلصَّـٰبِرِينَ فِى ٱلْبَأْسَآءِ وَٱلضَّرَّآءِ وَحِينَ ٱلْبَأْسِ ۗ أُو۟لَـٰٓئِكَ ٱلَّذِينَ صَدَقُوا۟ ۖ وَأُو۟لَـٰٓئِكَ هُمُ ٱلْمُتَّقُونَ ﴿177﴾
Righteousness is not that you turn your faces toward the east or the west, but [true] righteousness is [in] one who believes in Allāh, the Last Day, the angels, the Book, and the prophets and gives wealth, in spite of love for it, to relatives, orphans, the needy, the traveler, those who ask [for help], and for freeing slaves; [and who] establishes prayer and gives zakāh; [those who] fulfill their promise when they promise; and [those who] are patient in poverty and hardship and during battle. Those are the ones who have been true, and it is those who are the righteous.
Al-Baqarah 2:177۞ إِنَّ ٱللَّهَ يَأْمُرُ بِٱلْعَدْلِ وَٱلْإِحْسَـٰنِ وَإِيتَآئِ ذِى ٱلْقُرْبَىٰ وَيَنْهَىٰ عَنِ ٱلْفَحْشَآءِ وَٱلْمُنكَرِ وَٱلْبَغْىِ ۚ يَعِظُكُمْ لَعَلَّكُمْ تَذَكَّرُونَ ﴿90﴾
Indeed, Allāh orders justice and good conduct and giving [help] to relatives and forbids immorality and bad conduct and oppression. He admonishes you that perhaps you will be reminded.
An-Nahl 16:90فَوَيْلٌ لِّلْمُصَلِّينَ ﴿4﴾
ٱلَّذِينَ هُمْ عَن صَلَاتِهِمْ سَاهُونَ ﴿5﴾
ٱلَّذِينَ هُمْ يُرَآءُونَ ﴿6﴾
وَيَمْنَعُونَ ٱلْمَاعُونَ ﴿7﴾
4So woe to those who pray 5[But] who are heedless of their prayer[2000] - 6Those who make show [of their deeds] 7And withhold [simple] assistance.
Al-Ma'un 107:4-7
From the hadith
Narrated `Aisha:The Prophet (ﷺ) said "Gabriel continued to recommend me about treating the neighbors Kindly and politely so much so that I thought he would order me to make them as my heirs
Narrated Abu Shuraih:The Prophet (ﷺ) said, "By Allah, he does not believe! By Allah, he does not believe! By Allah, he does not believe!" It was said, "Who is that, O Allah's Messenger (ﷺ)?" He said, "That person whose neighbor does not feel safe from his evil
It is narrated on the authority of Abu Shuraih al-Khuzai' that the Prophet (may peace and blessings of Allah be upon him) observed:He who believes in Allah and the Last Day should do good to his neighbour and he who believes in Allah and the Last Day should show hospitality to the guest and he who believes in Allah and the Last Day should either speak good or better remain silent
Sahih Muslim 48SahihAbu Dharr reported Allah's Messenger (ﷺ) as saying:Abu Dharr, when you prepare the broth, add water to that and give that (as a present) to your neighbour
Sahih Muslim 2625SahihNarrated Abu Huraira:The Prophet (ﷺ) said, "O Muslim women! None of you should look down upon the gift sent by her female neighbor even if it were the trotters of the sheep (fleshless part of legs)
Quran: the Arabic Uthmani text from Tanzil.net (CC BY 3.0); English, Saheeh International, from QuranEnc.com.
Hadith: the English and the grades from the open hadith dataset (fawazahmed0/hadith-api), the same narrations MuslimGPT checks every quote against. Each one opens its own page with the Arabic.
The introduction is ours. For a ruling on your own situation, ask a scholar you trust.