It's optional.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
"I am your friend", said John."I am your friend," said John.
tamguatlay(The comma should be inside the closed inverted commas.)According to some style guides.