The phrase is "flog a dead horse". "Flog" means "beat" or "whip". It is, of course, absolutely pointless to whip or beat a dead horse (or a live one!) The phrase means to do something that is completely pointless and will have no beneficial end result.
Interested in Language