Put oneself in (someone) else’s place/position

To allow oneself to see or experience something from someone else’s point of view.

It was difficult to put myself in the woman’s place after she had lost her only child.