Is it a sin to judge others in our mind?

I hope you’re well. It is not good to judge anyone or think negative thoughts about people, but it is not necessarily a sin.