Once a man wanted to go to the south, but his carriage was heading north. A passer-by asked him: ‘If you are going to the south, why is your chariot heading north? ‘ The man answered, ‘My horse is good at running, my driver is highly skilled at driving a carriage, and I have enough money. ‘ The man didn’t consider that the direction might be wrong; the better his conditions were, the further he was away from his destination.
The idiom derived from this story indicates that one’s action was the opposite effect to one’s intention.