A fairly common teaching in the New Testament is that one gets what one deserves, that God will 'render to every man according to his deeds' (Romans 2:5-6).
Be not deceived; God is not mocked: for whatsoever a man soweth, that shall he also reap. Galatians 6:7, King James Version
For they have sown the wind, and they shall reap the whirlwind: it hath no stalk; the bud shall yield no meal: if so be it yield, the strangers shall swallow it up. Hosea 8:7, King James Version
This
phrase is nearly
synonymous with, 'you
made your
bed, now
lie in it.'.