In a statement issued to the media Younis said that it was never easy for a cricketer to decide when to retire.
"I am fortunate that I have been able to decide myself when to retire in T20 internationals and ODIs," Younis said.
The national selectors had, in a surprise move, recalled Younis for the four-match ODI series against England after ignoring him for this format since the World Cup early this year in Australia and New Zealand.
Going into his last match, Younis has scored 7,240 runs with seven hundreds and 48 half-centuries in one dayers.