jak sobie pościelesz, tak się wyśpisz

Etymology
lit. 'you will sleep like you have made your bed'.

Proverb

 * 1)  as you make your bed, so you must lie in it; as you sow, so shall you reap; success depends on foresight and preparation