paronomasia
noun
the use of a word in different senses or the use of words similar in sound to achieve a specific effect, as humor or a dual meaning; punning.
Examples are provided to illustrate real-world usage of words in context. Any opinions expressed do not reflect the views of Dictionary.com.
In like manner the very letter of the famous paronomastic text proves that Peter's confession, not Peter himself, was the rock.
From The Literary Remains of Samuel Taylor Coleridge by Coleridge, Henry Nelson