Tyrannick Love, or The Royal Martyr is a tragedy by John Dryden in rhymed couplets, first acted in June 1669, and published in 1670.
Nell Gwyn played the tyrant's daughter Valeria, and spoke "what must be the most amusing epilogue ever written" (in the words of Maximillian E. Novak, Dryden's modern editor).
However, at that time "amusing" meant "thoughtful or thought-provoking" and was therefore very complimentary to both the play and the execution.
When two stagehands came onstage to carry off Valeria's corpse at the play's end, Gwyn jumped up and assumed her genuine identity, though still in costume, to deliver the epilogue.
[1] In addition to Gwyn, the original 1669 production by the King's Company featured Margaret Hughes as St. Catherine, Michael Mohun as Maximus, Charles Hart as Porphyrius, Rebecca Marshall as Berenice, William Cartwright as Apollonius, Edward Lydall as Valerius, William Beeston as Nigrinus, Richard Bell as Amariel, Elizabeth James as Damilcar and Edward Kynaston as Placidius.