Mane, 26, has been linked with a shock switch to the European champions after another fine campaign in England.
"I am very happy in Liverpool and my contract will last for three more years," Mane told Salzburger Nachrichten.
He added: "As I said, I'm happy in Liverpool. But you never know what will happen in the future."
Mane scored 10 goals and provided seven assists in 29 games in the Premier League in 2017-18.
He is the latest member of Liverpool's 'Fab Three' attacking unit to have become a rumoured target for Madrid.
On the back of a 44-goal debut campaign at Anfield, Mohamed Salah has been heavily linked with a big-money move to the Santiago Bernabeu.
The Egypt international has, however, also been quick to talk up his happiness on Merseyside in an effort to curb the rumours.