From pillar to post
From one place to another, haphazardly and to little purpose..
The origin of the phrase is unknown but what is known is that it is old. It dates from at least the 16th century, when it appeared in print in Vox Populi, circa 1550, which was reprinted in W. C. Hazlitt's Remains of the early popular poetry of England in 1866:
From piller vnto post The powr man he was tost.
An earlier form of the expression was 'from post to pillar', which is effectively the same as far as meaning goes. This appears in the 15th century dream poem The Assembly of Gods. This work is usually ascribed to John Lydgate, although not everyone agrees about that:
Whyche doon he hym sent to Contrycion, And fro thensforth to Satysfaccion; Thus fro poost to pylour he was made to daunce.
Some etymologists have suggested that the posts and pillars were those of a Real Tennis court and there certainly were such courts in existence when the phrase was derived. There doesn't appear to be anything to support that theory other than plausibility, which renders it in the general vicinity of guesswork.
It is more likely that the expressions is merely a more colourful variant of 'from here to there' and has no specific story attached to it.