We all, men and women, have a role to play in ensuring modesty.
It is important to read Surah 24:30 before and alongside Surah 24:31.
Allah has provided us with both verses and has deliberatly placed Surah 24:30 first to ensure that men understand the importance of their role as well as women.
Surah 24:30 tells us …
(O Prophet), enjoin believing men to cast down their looks29 and guard their private parts.30 That is purer for them. Surely Allah is well aware of all what they do.
Hadith also illustrates this point. We are told about when the Prophet rode with Al Fadl bin Abbas. A woman of striking beauty approached the Prophet to seek his advice and the prophets travelling companion began to stare at at the woman.
The prophet Muhammad did not tell the woman off for her immodesty but 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”