Phrase

Where does the phrase
"beat a dead horse" come from
I understand the meaning, but looking for the origin

Replies