Wiktionary
put oneself in someone's shoes
vb. (context idiomatic English) To try to look at a situation from a different point of view; as if one were the other person. To empathise