Your colleague has invited you to his farewell party. You will not be able to attend the party, write a letter to the friend.
Explain the situation,
Say why you will not be attending,
Say something about the period you have worked together and his/her work.