The word "friend" can be broken down into each letter to create the following meanings: F - Faithful. R - Reliable. I - Inspiring. E - Encouraging.
This expression originated from a popular internet meme derived from a scene in a video game where players are prompted to "Press F to pay respects." Over time, it has evolved into a shorthand way of acknowledging a loss or expressing condolences.