كتاب المقدمات
The Book of Miscellany
(40)
Chapter: Kind Treatment towards Parents and establishment of the ties of Blood Relationship
(40)
- باب بر الوالدين وصلة الأرحام
Riyad as-Salihin 322
'Abdullah bin 'Amr Al-'as (May Allah be pleased with them) reported:
The Prophet (ﷺ) said, "The person who perfectly maintains the ties of kinship is not the one who does it because he gets recompensed by his relatives (for being kind and good to them), but the one who truly maintains the bonds of kinship is the one who persists in doing so even though the latter has severed the ties of kinship with him".

[Al-Bukhari].

وعنه النبي صلى الله عليه وسلم قال‏:‏ ‏ "‏ليس الواصل بالمكافئ ولكن الواصل الذي إذا قَطَعت رحمُه وصلها‏"‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 322
In-book reference : Introduction, Hadith 322