He is now returning to his home country to join Palmeiras, an 18-time champion of the Brazilian top division, which is currently ranked third in the league.
The sale of Miguel has generated €6m for Forest.
Miguel has signed a contract with Palmeiras that will last until 2030.