Question: what to say when a friend gets rejected?
Answer: Just hug/him her tightly whenever you meet. Tell him/her that you love him/her irrespective of his/her status in life. Talk to him/her more just to reassure him/her that you are there for him/her as usual.