Human rights in Muslim-majority countries
When the United Nations adopted the Universal Declaration of Human Rights (UDHR) in 1948, Saudi Arabia refused to sign it as they were of the view that sharia law had already set out the rights of men and women. To sign the UDHR was deemed unnecessary. What the UDHR did do was to start a debate on human rights in the Islamic world. Following years of deliberation, the Organisation of the Islamic Conference (OIC) adopted the Cairo Declaration of Human Rights in Islam.
Religious offense
The Universal Declaration of Human Rights dates only from the mid-20th century (it was adopted by the United Nations General Assembly on 10 December 1948, and then incorporated into various legal systems some time after that). However UNHDR Articles 1 and 2 had, by the early 21st century, frequently been interpreted by agnostic jurists such that any form of (non-biological) sexual discrimination has become illegal in many secular countries, while in legal jurisdictions strongly influenced by religious considerations sex discrimination may still be legally required and sometimes rigorously enforced.