say goodbye toThe に marks the person or people being addressed. Often sounds somewhat formal or literary; the phrase can also imply leaving someone or somewhere behind.
JA: 友達に別れを告げて、駅へ向かった。
EN: I said goodbye to my friends and headed to the station.