Hatim in land of Lilliputs

Hatim and Kasim search for the missing soldiers and the gold of Yemen. They arrive in the Land of Lilliputs, where they are held captive to be fed to a monster. The princess of Lilliputs releases Hatim on one condition. What is the condition?