I said, "Messenger of Allah, what do you say about a cousin of mine? I go to him to ask for help and he gives me nothing, nor does he maintain ties with me. Then when he is in need, he comes to me and asks me, and I have sworn not to give him anything nor maintain ties with him."He commanded me to do what was better and to make expiation for my oath.
أخبرنا محمد بن منصور عن سفيان قال حدثنا أبو الزعراء
قلت يا رسول الله أرأيت ابن عم لي أتيته أسأله فلا يعطيني ولا يصلني ثم يحتاج إلي فيأتيني فيسألني وقد حلفت أن لا أعطيه ولا أصله فأمرني أن آتي الذي هو خير وأكفر عن يميني
No references are available.
[Its isnad is sahih]. Ibn Majah collected it in the chapter on Expiations, in the section titled "One who swears an oath then sees that something else is better than it," hadith no. 2109, from the hadith of Sufyan bin Uyayna with this chain. It is also in Al-Kubra, hadith no. 4730, and it is documented in Musnad Humaydi, hadith no. 885, with my verification.