From Longman Dictionary of Contemporary Englishbe flogging a dead horsebe flogging a dead horsespoken to be wasting time or effort by trying to do something that is impossible → flog
Examples from the Corpus
be flogging a dead horse• They seem to be flogging a dead horse.• If something is carried on then it is flogging a dead horse or blind ambition.