Muhammad Hafeez was prevented from boarding the ship