Rudy Fernandez has agreed to terms with Real Madrid on a contract that will allow him to play in Spain during the NBA's lockout.

Fernandez was traded to Dallas this offseason and will be a restricted free agent in the summer of 2012.