The forward recently signed a new two-year contract at Liverpool but hasn't ruled out the prospect of a move to Saudi Arabia later in his career.
Speaking to the Egyptian TV channel ON Sports, Salah, 32, said: "If you ask me for my opinion, I think I can play until the age of 39 or 40, but if I felt before that I wanted to stop, I would quit. I have achieved a lot of things.
"My contract was up at Liverpool and I would have gone to Saudi but we finalised the deal with Liverpool."
He added of interest from the Saudi Pro League: "I still have a good relationship with them and I always stay in contact with them. Yes, we were talking to each other.
"I don't know what is going to happen, but I am happy here in Liverpool and I am staying here for the next two years. Then I will see what I will do next."
Salah was a pivotal figure as Liverpool won the Premier League title - winning both the Golden Boot and Playmaker award as he contributed to 47 goals across the campaign - and revealed that the fans were key to his decision to commit his immediate future to the Reds.
He said: "Of course, they are part of the pressure on the administration. It was from the public, because I have been at the club for seven or eight years and I have been performing well with them and I have given them everything for all these years.
"From the beginning, day one, I knew that they wanted me to stay, so in a certain way they had a big role."