Solomon wrote a letter to the Queen. The hoopoe delivered it to her palace leaving it on her chest while she was sleeping. Then Bilqis prepared presents for Solomon to test whether he was a "pious" or "worldly" prophet using a series of riddles. The queen set out to visit Solomon. Some say that Solomon magically moved her throne while others say that he wished for the throne and knew he had to acquire it before the Queen and her followers submitted to Allah.