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.
Ae Dil Hai Mushkil Stills: The Trailer is All About Love, Friendship, Heartbreak
In Photos: Asus Zenfone 3 Is a Good Mid-Budget Smartphone
In Photos: Triumph Daytona 675R Priced at Rs 12.14 Lakh (ex-showroom Delhi)
In Pictures: Riders Music Festival, a Celebration of Love for Superbikes and Music
Held Once Every 12 Years, Naropa Festival Witnesses Attendance Of Devotees, Monks And Tourists