Flogging a dead horse

Flogging a dead horse (or beating a dead horse or beating a dead dog) is an idiom that means to continue a particular endeavor is a waste of time as the outcome is already decided.
- Wikipedia