Regarding the verse "And to those with whom you have made a pledge, give them their share" [Nisa 4:33], a man used to make a pact with another man though there was no kinship between them, and each would inherit from the other. Surah Anfal abrogated this, for Allah said, "And those related by blood are nearer to one another" [Anfal 8:75].
{والذين عاقدت أيمنكم فاتوهم نصيبهم} [النساء: ٣٣] كان الرجل يحالف الرجل ليس بينهما نسب، فيرث أحدهما الآخر، فنسخ ذلك الأنفال. قال تعالى: {وأولوا الأرحام بعضهم أولى ببعض} [الأنفال: ٧٥].
Abu Dawud (2921) narrated it from Ahmad bin Muhammad bin Thabit, who said, Ali bin Husayn told me, from his father, from Yazid Nahwi, from Ikrima, from Ibn Abbas, and he related it. Its isnad is hasan, on account of the discussion surrounding Ali bin Husayn bin Waqid Marwazi, for there is disagreement about him, though his hadith is hasan when nothing objectionable is brought against him.So the abrogation concerns inheritance by way of oath-alliance. As for making a pact of mutual support for obedience to Allah, for aiding the wronged, and for brotherhood in Allah, this is something desirable, and the command to do so has come in many hadiths.