Sage Narada gave Shiva and Parvati a golden mango.
They decided to give tha mango to that son who is the fastest in circling the world. Karttikeya mounted his peacock, Ganesha circled his parents, wo are the world. When Karttikeya returned, the fruit had already been given to the brother.
Read the story here