Question: what to say to someone who lost a friend over text?
Answer: “ My deepest sympathies go out to you, my friend. May you find comfort and peace during this difficult time. ... 
“I heard the news, my friend. ... 
“I was deeply saddened to hear about your brother's passing. ... 
“I'm sorry for your loss. ... 
“I'm so sorry to hear this sad news.