Islam places the primary responsibility of observing hijab not on women – but on men. It’s critical to understand this point.
People often conflate “hijab” and “headscarf”. Wearing the headscarf is one form of hijab, but men often forget that hijab is much more. And at the genesis of the hijab discussion, the Quran commands men to not stare at women and to not be promiscuous. The Quran 24:31 obliges men to observe modesty: “Say to the believing men that they restrain their eyes and guard their private parts. That is purer for them. Surely, Allah is well aware of what they do.”
…This point was again illustrated when the Prophet rode with his companion Al Fadl bin Abbas. A woman described as strikingly beautiful approached the Prophet to seek his guidance on some religious matters. Al Fadl began to stare at her because of her beauty.
Noting this, the Prophet Muhammad did not scold the woman for dressing immodestly or revealing her beauty. Instead, he “reached his hand backwards, catching Al Fadl’s chin, and turned his face to the other side so that he would not gaze at her”. Thus, the Prophet Muhammad once more established that the primary burden to observe hijab rests on men.