Abu Hurairah reported,

The Prophet ﷺ said, "Allah created His creation, and when He finished, the womb stood up and said, 'This is the place of the one who seeks refuge in You from being severed.'Allah replied, 'Yes. Would it not please you that I maintain ties with whoever maintains ties with you, and sever ties with whoever severs you?'The womb said, 'Indeed, my Lord.'Allah said, 'Then that is yours.'"The Messenger of Allah ﷺ then said, "Recite if you wish, 'Then would you perhaps, if you turned away, spread corruption on earth and sever your ties of kinship?' [Muhammad 47:22]."

Bukhari 5987

Sahih

حدثني بشر بن محمد أخبرنا عبد الله أخبرنا معاوية بن أبي مزرد قال سمعت عمي سعيد بن يسار يحدث

عن أبي هريرة

عن النبي ﷺ قال إن الله خلق الخلق حتى إذا فرغ من خلقه قالت الرحم هذا مقام العائذ بك من القطيعة قال نعم أما ترضين أن أصل من وصلك وأقطع من قطعك قالت بلى يا رب قال فهو لك قال رسول الله ﷺ فاقرءوا إن شئتم {فهل عسيتم إن توليتم أن تفسدوا في الأرض وتقطعوا أرحامكم}

البخاري 5987صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
Whoever maintains ties, Allah will maintain ties with him
Numbering
Darussalam 5987
Bukhari 5987