Rahmat Shah's 173 gave Afghanistan a slender first-innings lead before Zimbabwe pulled ahead in Sharjah