Younus (62) and Misbah (53) came to the rescue with a steadying partnership as Pakistan appeared to be heading for a heavy defeat in the second Test against Sri Lanka in Dubai on Friday.
At stumps on the third day, Pakistan managed to reach 132 for three wickets, still trailing their opponents by 91 runs, with Younus and Misbah unbeaten at the crease.
Resuming on 318 for four, Sri Lanka were all out for 388 in their first innings in the morning, losing their last six wickets for 68 runs.
Pakistan's second innings started abysmally as left-arm spinner Rangana Herath dismissed opener Ahmed Shehzad at the stroke of lunch and paceman Nuwan Pradeep struck twice early in the afternoon to reduce them to 19 for three.
That brought Younus, who completed his 28th half century in Tests, and captain Misbah together and the pair went
Pakistan first innings 165
Sri Lanka first innings 388
Pakistan second innings
K Manzoor c Jayawardene b Pradeep 6
A Shehzad c Jayawardene b Herath 9
M Hafeez c Jayawardene b Pradeep 1
Y Khan not out 62
M-ul-Haq not out 53
Total: (3 wickets; 49 overs) 132
Fall of wickets: 1-11 2-12 3-19
Misbah was lucky to survive a couple of run-out chances but looked solid on the way to his 23rd Test fifty.
Earlier, Angelo Mathews (42), who was dropped by wicketkeeper Sarfraz Ahmed off Rahat Ali on Thursday evening, edged a similar delivery from the same bowler in the morning.
Sarfraz made no mistake this time, diving to complete the catch, and the Sri Lanka captain departed without adding to his overnight score after a 93-run stand with Mahela Jayawardene.
Jayawardene, running out of partners, went for some quick runs and was bowled on 129, trying to play a reverse sweep against Saeed Ajmal.
During the course of his innings, the stylish right-hander passed Australian Steve Waugh to move to number eight on the list of highest run-scorers in Tests. Waugh had scored 10,927 runs, while Jayawardene's tally stands at 10,940 runs.