The Prophet ﷺ said, "Muaz, do you know what is the right of Allah upon His servants?"Muaz replied, "Allah and His Messenger know best."The Prophet ﷺ said, "That they worship Him and associate nothing with Him. Do you know what is their right upon Him?"Muaz replied, "Allah and His Messenger know best."The Prophet ﷺ said, "That He will not punish them."
قال النبي ﷺ: يا معاذ، أتدري ما حق الله على العباد؟ قال: الله ورسوله أعلم. قال: أن يعبدوه ولا يشركوا به شيئا. أتدري ما حقهم عليه؟ قال: الله ورسوله أعلم. قال: أن لا يعذبهم.
Bukhari related it in the Book of Tawhid (7373), and Muslim related it in the Book of Faith (30:50), both of them from Muhammad bin Bashshar, who said, Ghundar narrated to us, who said, Shubah narrated to us, from Abu Husayn and Ashath bin Salim, that they both heard Aswad bin Hilal narrating from Muaz bin Jabal, and he mentioned it. Their wording is identical.As for the verse "and the neighbor who is a relative and the neighbor who is not a relative" [Nisa 4:36], Ali bin Abu Talha said, on the authority of Ibn Abbas, regarding "the neighbor who is a relative," that this means the one between whom and yourself there is a kinship tie (meaning he has two rights, the right of neighborliness and the right of kinship). As for "the neighbor who is not a relative," this is the one between whom and yourself there is no kinship tie. The closer a neighbor's door is, the stronger his claim to this right. The neighbor who is not a relative includes both the Muslim and the non-Muslim. The Muslim's case is well known, while with the non-Muslim, it is so that the good qualities of Islam may be shown to him. A person should therefore treat his neighbor well, through gifts, charity, kind speech, and by refraining from causing him harm.