Under-scanner Hafeez shines for Pakistan