I didn't find it in a Bible search.
The famous Rabbi Hillel of Jesus’ time said, “Judge not your friend until you have stood in his place.”
Matthew 7:1 says judge not, lest ye be judged