Question: What does a person do if a strange woman extends her hand to be shaken?
Answer: ” He does not extend his hand and holds it back. He says: me shaking [the hand] of someone like you is not allowed”.
[Sharh Sunan Ibn Majah no. 264]
Faisal Ibn Abdul Qaadir Ibn Hassan