Unknown to herself the Invisible Prince had followed her , but fearing to be discovered by the Princess in the presence of others , he made up his mind to wait quietly till dark ; and employed the long hours in writing a poem to the Princess , which he laid on the bed beside her .