a long time thereafter , and the tale telleth not how long , he came to himself , and he was lying gazing at the sun before the doors , and his head rested against a heap of gold even as the ransackers had left it .