I think the confusion here stems from the fact that 'to say hello/goodbye' can be considered a fixed phrase-- so that it does not really involve a quotation at all.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.