Srimad Bhagavatam Canto 08, Chapter 24, Text 57

SB 8.24.57

atita-pralayapaya
 utthitaya sa vedhase
hatvasuram hayagrivam
 vedan pratyaharad dharih
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
At the end of the last inundation [during the period of Svayambhuva Manu] the Supreme Personality of Godhead killed the demon named Hayagriva and delivered all the Vedic literatures to Lord Brahma when Lord Brahma awakened from sleeping.
Srimad Bhagavatam Canto 08, Chapter 24, Text 56
Srimad Bhagavatam Canto 08, Chapter 24, Text 58