So he cheerfully gave the promise asked for by the ugly little man , and in the twinkling of an eye , man , spring , and cup had disappeared , and the king was left kneeling on the dry sand , wondering if it was all a dream .