Shaybani mentioned that Ata Abu al-Hasan al-Suwai, and I believe it was from Ibn Abbas, said regarding this verse, "It is not lawful for you to inherit women by compulsion, nor to prevent them from marrying" [Nisa 4:19], that when a man died, his relatives had more right to his wife than her own guardian. If one of them wished, he could marry her himself, or they could marry her off to whomever they chose, and if they wished, they would not allow her to marry at all. So this verse was revealed concerning that practice.
حدثنا أحمد بن منيع حدثنا أسباط بن محمد حدثنا الشيباني عن عكرمة
الشيباني وذكره عطاء أبو الحسن السوائي ولا أظنه إلا عن ابن عباس في هذه الآية {لا يحل لكم أن ترثوا النساء كرها ولا تعضلوهن} قال كان الرجل إذا مات كان أولياؤه أحق بامرأته من ولي نفسها إن شاء بعضهم زوجها أو زوجوها وإن شاءوا لم يزوجوها فنزلت هذه الآية في ذلك