Sayyiduna Mu'awiyah bin Haydah (may Allah be pleased with him) narrated: I said: "O Messenger of Allah! What is the right of my neighbour over me?" He (peace and blessings be upon him) said: "If he falls ill, visit him; if he dies, attend his funeral; if he asks you for a loan, lend to him; if he falls into poverty, cover his need; if some good comes to him, congratulate him; if a calamity befalls him, console him; do not raise your building higher than his building so that the breeze is blocked from him; and do not trouble him with the aroma of your cooking pot, unless you ladle out some of it for him as well."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17063