Barcelona midfielder Frenkie de Jong says he would rather old teammate Donny van de Beek didn't join Real Madrid - as he doesn't want to face him as an opponent. (0:59)

ANN ARBOR, Mich. -- Barcelona midfielder Frenkie de Jong has no doubt Donny van de Beek is good enough to improve Real Madrid but joked he would prefer his ex-teammate to stay at Ajax.

Van de Beek, 22, has confirmed Madrid are in talks with Ajax as they look to bolster their midfield before the transfer window closes.

- ESPN fantasy: Sign up now!

- When does the transfer window close?

- Inside the Ajax talent-making factory

De Jong played alongside Van de Beek last season as the Dutch club won a domestic double and upset Madrid and Juventus on their way to a Champions League semifinal, where they were eventually beaten by Tottenham Hostpur.

"I would prefer him to stay at Ajax because I wouldn't have him as an opponent and Ajax would stay strong," De Jong told ESPN FC when asked if he would like to see Van de Beek join Barca's Clasico rivals.

"But, no, of course, when it's all settled, and if he moves to Madrid, I am really happy for him. I think he deserves it. He's a great player. Then I will go see him in Spain!"

Van de Beek would be competing for a place in Zinedine Zidane's side with Ballon d'Or winner Luka Modric, Toni Kroos and Casemiro, among others.

However, De Jong said he believes his compatriot has the quality to become the latest in a string of young players to leave Ajax and make their name at the very top level.

"I am pretty sure he has the ability," he said. "I think he showed it last season in the Champions League, especially in the knockout rounds.

"I think he has shown to the world and everyone in Europe he has the ability to play at that level."