The film you're recalling is Journey to Mecca (French title: Le Voyage à La Mecque), a 2009 IMAX/documentary drama produced in France and the UAE. It dramatizes the historic 14th-century pilgrimage of Ibn Battuta, but the narrative frame follows a fictional Pakistani grandfather, Ahmed, and his young grandson, Youssef, as they undertake the Hajj together in modern times.
Ahmed, a devout elder, decides to fulfill his lifelong dream of performing the Hajj. He brings Youssef along, hoping to instill faith and tradition. Their journey from Pakistan to Saudi Arabia becomes a spiritual odyssey, interwoven with stunning reenactments of Ibn Battuta's 1325–1326 trek from Tangier to Mecca.
Note: If you're thinking of a narrative feature (not IMAX/docudrama) about a grandfather searching for a son who migrated for work, you might be blending memories with another film—but Journey to Mecca is the closest high-profile match.