The Spaniard has played second fiddle to Lopez this season.
Iker Casillas returned to the Real Madrid first team on Wednesday night, as the 32-year-old made the goalkeeper’s first appearance for the club in 2013/14.
Like Jose Mourinho before, new head coach Carlo Ancelotti has preferred Diego Lopez in goal ahead of the Los Blancos captain and Casillas has admitted the ‘keeper thought about leaving the Santiago Bernabeu.
“I can not hide it, I thought about going,” the Spain international told Punto Pelota.
“When you’ve been so long without playing, it is true that a lot goes through your head.
“But my dream is to be here for as long as my mind and body will let me.”
Both Arsenal and Manchester City were linked with the Madrid stopper as the Premier League duo look to improve between the sticks.
The Gunners eventually brought in Emiliano Viviano on-loan as cover for Wojniech Szczesny, but there is a growing concern over the capabilities of Joe Hart at City.
During the Citzens’ 1-3 demolition at the hands of Bayern Munich on Wednesday, Hart was directly at fault for two of the Germans’ goals.
However, it seems that Casillas will not be going anywhere now, having enjoyed one of the most successful careers in the history of the game both domestically and internationally.
The Spaniard has won five La Liga titles, two Champions Leagues, the European Championship twice and the World Cup.
Casillas has also been awarded more international caps than any other player from Spain in history, with the total currently standing at 150.