The former skipper said that he will provide whatever advice or assistance Hafeez needed.
Stuart Broad tore his shoulder muscle while bowling in the Lord's ODI against India.
Australia's Twenty20 captain is looking to get the team off to a winning start.
It follows Ponting's decision last month to step down from international Twenty20 cricket.
Younis had announced retirement from T20 after the World Cup.
Bollywood's Most Popular 'Dahi Handi' Scenes
In Photos: The Asus Zenfone 3 With Glass-and-Metal Design
Enduring Images of Rio Olympics 2016
Monsoon Fury: Floods in Many Parts of North India
SRK to Priyanka Chopra: See What Celebrities Shared on Instagram This Week