The above quote is not dialogue, it is part of the narration. The person Hester recognized was her husband, Roger Chillingworth.
When he found the eyes of Hester Prynne fastened on his own, and saw that she appeared to recognize him, he slowly and calmly raised his finger, made a gesture with it in the air, and laid it on his lips.
The Scarlet Letter