It is the third largest mosque in Saudi Arabia, after Mecca and Medina.
Around 1 million of the 9 million immigrants in the United Arab Emirates are Catholic.
Pope Francis presented a gift as the two leaders said goodbye at the doors of the plane
The Vatican has published the packed schedule of Pope Francis' fourth international trip in 2019.