Pirkei Avot 2:5

Never judge your friend until you put yourself in his position.