Abu Dawud Book 12, Hadith Number 2915.

Chapter : Abrogation of inheritance by alliance by the command of inheritance of relationship.

Narated By Ibn ‘Abbas : To those also, to whom your right hand was pledged, give their due proportion. A man made an agreement with another man (in early days of Islam), and there was no relationship between them; one of them inherited from the other. The following verse of Surat al-Anfal abrogated it: “But kindred by blood have prior right against each other.”