Pakistan’s resilience in the second innings gave brief hope. Masood's steadfast innings, in collaboration with the middle order, helped Pakistan reduce South Africa's sizable lead.