I've seen two expressions used by Chazal:
Hashem judges a person מידה כנגד מידה, measure for measure, for example Nedarim 32a
במידה שאדם מודד בה מודדין לו, by the measure a person uses They use to measure him, for example Sotah 1:7
I'm wondering if they're the same thing or is there a nuanced difference between them.