To think something in words, forming a silent internal statement or question.
"I looked at the empty seat and said to myself, 'I'm definitely on the wrong train.'"
'What's done cannot be undone,' she said to herself.
— William Shakespeare, Macbeth, Act V, Scene 1 (paraphrased internal form; the speech is Lady Macbeth's)