Fetching details from the dictionary...

farewell; adieu; goodbye; so long
友達に「さようなら」と言って別れた。
I said 'goodbye' to my friend and parted.
先生に「さようなら」と挨拶して帰った。
I said 'goodbye' to the teacher and went home.
彼女に「さようなら」と手を振って見送った。
I waved and said 'goodbye' to her.