Think before you criticize others, for you may be criticized yourself in return.
The source is Matthew, vii, 1. It is part of the sermon of the mount and reads in the Moffatt translation: ‘Judge not, that you may not be judged yourselves; for as you judge so you will be judged, and the measures you deal out to others will be dealt out to yourselves.’