Shabbat 127a

He who judges others favorably, he himself is judged favorably.