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.
LFW 2016, Day 4: Jacqueline, Riteish, Malaika Dazzle On The Ramp
Michael Jackson(1958-2009): Of successes, controversies and music
SRK to Sonakshi Sinha: What Your Favourite Stars Shared on Instagram This Week
Weekly Roundup: Smartphones and Other Gadgets Launched in India
StarGaze: Katrina- Sidharth Visit Jhalak Sets, Tiger Shroff Promotes A Flying Jatt