Mullah Yasin was not acting according to Islamic law, which does not require a woman to marry a man simply because he wants to marry her. However, the commodification of women under Islamic law leads to the idea that a woman is being intolerably and inexcusably impertinent if she doesn’t submit to anything she is directed to do.
“Taliban’s vice and virtue agent kills a teenage girl for refusing marriage proposal in Balkh Province,” South Asia Terrorism Portal, November 8, 2022 (thanks to The Religion of Peace):
The Taliban’s senior vice and virtue agent, Mullah Yasin killed a teenage girl for refusing a forced marriage proposal in the Sholgara District of Balkh province, Hasht-e-Subh reports on November 7. Asif Waziri, the spokesman of the Taliban police in Balkh province confirmed this incident, emphasizing that Mullah Yasin was arrested by Taliban forces. But according to sources Mullah Yasin was released after spending a short time in the alleged Taliban custody in Sholgara District.