Horayos3: 7
הָאִישׁ קוֹדֵם לָאִשָּׁה לְהַחֲיוֹת וּלְהָשִׁיב אֲבֵדָה, וְהָאִשָּׁה קוֹדֶמֶת לָאִישׁ לִכְסוּת וּלְהוֹצִיאָהּ מִבֵּית הַשֶּׁבִי. בִּזְמַן שֶׁשְּׁנֵיהֶם עוֹמְדִים לְקַלְקָלָה — הָאִישׁ קוֹדֵם לָאִשָּׁה.
A man takes precedence over a woman [in matters] pertaining to life and to returning a lost article. A woman takes prece-dence over a man [in matters] pertaining to clothing and releasing her from captivity. [However,] if they both stand to be molested, a man has precedence over a woman.