If you are staying, and the other person is (or the other people are) leaving, you can say:
안녕히 가세요 * If two or more people meet and all of them are leaving and going in separate directions, they can all say 안녕히 가세요 to each other since no one is staying.
More from this study set
안녕하세요 (annyeonghaseyo)
Hello. / Hi. / How are you? / Good afternoon. / Good evening. / etc...
안녕 = well-being, peace, health
하세요 = you do, do you?, please do
감사합니다 (gamsahamnida)
thank you
감사 = appreciation, thankfulness, gratitude
합니다 = I do, I am doing
네. [ne]
yes
아니요. [a-ni-yo]
No
네, 맞아요. [ne, ma-ja-yo]
Yes, that is right.
(맞아요 is used in order to express more strongly)