Salah, 33, confirmed he will depart Anfield despite having a year remaining on his contract, ending a period in which he has won every major trophy available with the club and scored 255 goals in 435 appearances.
His future had been uncertain following comments earlier in the season, when he said he had been “thrown under the bus” after being dropped by Arne Slot in December.
Liverpool confirmed the decision in a statement, saying the forward had reached an agreement to leave at the end of the 2025–26 campaign.
Salah said: “Hello everyone. Unfortunately the day has come. This is the first part of my farewell. I will be leaving Liverpool at the end of the season.
“I never imagined how deeply this club, this city, these people, would become part of my life. Liverpool is not just a football club, it’s a passion, it’s a history, it’s a spirit. I can’t explain in words to anyone not part of this club.
“We celebrated victory. We won the most important trophies and we fought together through the hardest time in our life.
“I want to thank everyone who was part of this club throughout my time here, especially the team-mates past and present.
“And to the fans, I don’t have enough words. The support you showed me through the best time of my career and you stood by me in the toughest time. It’s something I will never forget and something I will take with me always.
“Leaving is never easy. You gave me the best time of my life. I will be always one of you.
“This club will always be my home to me and my family.
“Thank you for everything. Because of all of you, I will never walk alone.”
Liverpool added: “Mohamed Salah is to bring the curtain down on his illustrious career with Liverpool FC at the end of the 2025–26 season.
“The forward has reached an agreement with the Reds that will see him close a remarkable nine-year chapter at Anfield.
“Salah expressed his wish to make this announcement to the supporters at the earliest possible opportunity to provide transparency about his future due to his respect and gratitude for them.
“With plenty still left to play for this season, Salah is firmly focused on trying to achieve the best possible finish to the campaign for Liverpool and, therefore, the time to fully celebrate his legacy and achievements will follow later in the year when he bids farewell to Anfield.”