3 answers
(click or scroll down)
All of the given responses are correct:
1. He wanted to escape corrupt Meccan society.
2. He was looking for wisdom from God.
3. He had been told by an angel to go there.
4. He was hiding from his persecutors.