Leao penned a new deal to 2028 on Friday.
“I want to thank the club for their hard work to ensure the best players stay here. Last year we showed everybody that this blend of younger and older players can make a strong team," he said.
“I am delighted that I can continue playing with them. Ibra is like an older brother, he has a wealth of experience, having played so many games and is a valuable resource for us younger players.
“He's taught me never to give up. Even upon our return to the locker room at half-time and I already scored a goal, he'll tell me that I need to get another one. Before a big game, he'll tell me Rafa you have to show everyone who you are and what you can do.
“He's been incredibly important for my development as a footballer."
He also said, “I was young when I joined Milan, but I was already aware of the stature of the club. But only after wearing the shirt at San Siro in front of the fans, you realise it's not easy. In these four years, I've got used to the fans. I am proud and can't wait to continue writing my story here.
“I'd like to thank everyone for their patience in supporting me and the team. When I go to restaurants, people greet me with a smile and that leaves me speechless. I want to keep on scoring and creating lots of goals, to showcase my talent."