If possible, the 35-year-old would like to finish his career with Los Blancos.
"Of course I want stay at Real Madrid, but it doesn't depend on just me," he told El Partidazo.
"It depends on what the club wants and the coach as well.
"We have a good relationship and I am sure that we will come to an agreement so that I stay or go to another club.
"Real Madrid is my home and it's my ninth season and I'm very happy.
"We will see what will happen, I don't like talking about hypothetical situations as I still haven't spoken with the president."