Anjana's little child was hungry. He saw the red sun rising in the east — and took it for a ripe fruit.He leapt — straight into the sky toward the sun. Vayu blew cool winds so his son would not burn. The gods watched astonished.Indra hurled his vajra. The child fell; his chin was marked — 'hanu', hence Hanuman. Vayu, in grief, stopped the winds.The world gasped; the gods came. Brahma, Indra and Surya gave boons — long life, a body no weapon can break. The winds blew again.
Source
Valmiki Ramayana, Uttara Kanda (as told by Jambavan)