The Brazilian thrived on loan with the La Liga side and is now poised to depart Old Trafford permanently