Praise be to Allaah.
The woman is required to cover all of her body in front of non-mahram men with clothes that are loose and will not show the size of her limbs and are not see-through.
The basic principle is that it is permissible for a woman to ride animals, just as women used to ride camels and so on at the time of the Prophet (blessings and peace of Allah be upon him). al-Bukhaari (5365) and Muslim (2527) narrated from Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (blessings and peace of Allah be upon him) said: “The best women who ride camels are the women of Quraysh.”
Some fuqaha’ forbade women to ride horses except in cases of necessity such as jihad or Hajj, and they gave as the reason for that the fact that it is an imitation of men, and because of the reports that the women who do that are cursed, but that is a hadeeth that is not saheeh.
It says in al-Durr al-Mukhtaar: A Muslim woman should not ride an animal because of the hadeeth. This applies if it is for leisure, but if it is for a need such as a campaign or Hajj or some religious or worldly interest concerning which she has no other option, then there is nothing wrong with it.
Ibn ‘Aabideen said in his Haashiyah (6/423): The phrase “because of the hadeeth” refers to a hadeeth in al-Dhakheerah which says “May Allah curse the women on saddles.” But al-Madani narrated from Abu’l-Tayyib that there is no basis for it, i.e., there is no source for the hadeeth in this wording but the meaning is proven. In al-Bukhaari and elsewhere it says: The Messenger of Allah (blessings and peace of Allah be upon him) cursed men who imitate women and women who imitate men. In al-Tabaraani it says: A woman passed by the Messenger of Allah (blessings and peace of Allah be upon him) carrying a bow and he said: May Allah curse women who imitate men and men who imitate women.
The words “but if it is for a need such as a campaign” and so on mean: it is stipulated that she should be covered and she should be with her husband or a mahram. The words “for some religious interest” refer to something like travelling in order to uphold ties of kinship. End quote.
If a woman rides a bicycle in front of men there is the possibility that she may become uncovered and part of her body may appear or the shape of her body may appear when she moves and air flows around her. For this reason it is not permissible for her to do that except in the case of necessity or urgent need, on condition that she wear clothes that cover her, with pants and socks underneath.
We asked Shaykh Ibn ‘Uthaymeen (may Allah have mercy on him) a previous question, which was as follows: Is it permissible for a Muslim woman living in a kaafir country to ride a bicycle or motorbike wearing complete hijab?
He replied: I do not think this is allowed, because she may be caught up with pursued.