It was announced on Sunday that the Italian had penned a three-year deal at San Siro on his 16th birthday, and he will remain at the club until at least June 2017.
Mastour has yet to make his first-team debut for Milan, but he was an unused substitute for the 2-1 victory over Sassuolo on May 18.
A statement on Milan's official website read: "A pleasant surprise for the 16th birthday of Hachim Mastour.
"The young talent today signed his first professional contract which will keep him at Milan until June 30, 2017.
"Hachim Mastour, best wishes from all the Rossoneri fans."
Milan endured a difficult campaign in Italy's top flight last season, eventually posting an eighth-placed finish.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.