I Am Beautiful Up In The Sky I Am Magical Yet I Cannot Fly

Riddle: I am beautiful, up in the sky. I am magical, yet I cannot fly. To people I bring luck, to some people, riches. The boy at my end does whatever he wishes. What am I?

Answer: rainbow