There are many instances in the Holy Quran and the Hadiths where Muslims are enjoined to do good in societal settings. Much importance is laid on individual acts, with particular emphasis on their relationship with Allah swt, through prayer, dhikr, etc. However, it is believed that a person’s social interaction is a reflection of his relationship with Allah swt.
Since intention is at the heart of a believer’s actions, his actions should in effect ideally reflect his submission to the will of Allah swt. Allah swt calls for the proper treatment of parents in the Holy Quran, to the extent that one should not even utter a breath of admonishment. Muslims also place importance in the maintenance of familial and kinship relationships.
Several Hadiths mention the importance of keeping death in mind as a way to correct oneself when one starts going astray with the activities of this world. And as kind of a prelude, visiting and comforting a sick person is also a responsibility of the practising Muslim. In the real world, one detatched from the deen of Allah, these acts are seen as those being performed by a kind and generous human being. One who cares for others, expending time, money and effort. That this is enjoined upon a believer by our Creator while promising good tidings for doing so is but an icing on the cake.