(And make not Allah, by your oaths, a hindrance to your being righteous…) [2:224].
Said al-Kalbi: “This was revealed about ‘Abd Allah ibn Rawahah to warn him against boycotting the husband of his sister, Bashir ibn al-Nu‘man. ‘Abd Allah ibn Rawahah had sworn that he will never visit him, speak to him or reconcile between him and his sister. He said: ‘I swore by Allah that I will not do any of these and it is forbidden for me not to honour my oath’. Allah then revealed this verse”.
Asbab Al-Nuzul by Al-Wahidi , trans. Mokrane Guezzou