Riyad as-Saliheen 315
Abu Hurairah (May Allah be pleased with him) reported:
Messenger of Allah ﷺ said, "Allah created all the creatures and when He finished the task of His creation, Ar-Rahm (ties of relationship) said: '(O Allah) at this place I seek refuge with You against severing my ties.' Allah said: 'That I treat with kindness those who treat you with kindness and sever ties with those who sever ties with you.' It said: 'I am satisfied.' Allah said: 'Then this is yours". Then Messenger of Allah ﷺ said, "Recite this Ayah if you like: 'Would you then, if you were given the authority, do mischief in the land, and sever your ties of kinship? Such are they whom Allah has cursed, so that He has made them deaf and blinded their sight". (47:22,23).
[Al-Bukhari and Muslim].
The words in Al-Bukhari are: Messenger of Allah ﷺ said, "Allah (Subhanahu-wa-Taala) says: 'He who maintains good ties with you, I maintain good ties with him; and he who severs your ties, I sever ties with him".
وعنه قال: قال رسول الله ﷺ : " إن الله تعالى خلق الخلق حتى إذا فرغ منهم قامت الرحم، فقالت: هذا مقام العائذ بك من القطيعة، قال: نعم أما ترضين أن أصل من وصلك، وأقطع من قطعك؟ قالت: بلى، قال: فذلك لك، ثم قال رسول الله ﷺ : " اقرءوا إن شئتم: (فهل عسيتم إن توليتم أن تفسدوا في الأرض وتقطعوا أرحامكم. أولئك الذين لعنهم الله فأصمهم وأعمى أبصارهم) [محمد: 22،32 ] ((متفق عليه)). وفي رواية للبخاري: فقال الله تعالى: " من وصلك، وصلته، ومن قطعك، قطعته".