Dictionary / Vocabulary / 無駄足
むだあし
visit for no reason; going on a fool's errand
Also written ムダ足、徒足、むだ足
無駄足だったよ。
It was a wild goose chase.