The story
From Galatians 6:7 in the Bible (King James Version; spelling modernized): “Be not deceived, God is not mocked: for whatsoever a man soweth, that shall he also reap.” Compare Hosea 8:7, “For they sow the wind, and they shall reap the whirlwind.”
Etymology from Wiktionary, CC BY-SA 4.0.