utthitāya sa vedhase
vedān pratyāharad dhariḥ
atīta—passed; pralaya-apāye—at the end of the inundation; utthitāya—to bring him to his senses after sleeping; saḥ—the Supreme Lord; vedhase—unto Lord Brahmā; hatvā—after killing; asuram—the demon; hayagrīvam—by the name Hayagrīva; vedān—all the Vedic records; pratyāharat—delivered; hariḥ—the Supreme Personality of Godhead.
At the end of the last inundation [during the period of Svāyambhuva Manu] the Supreme Personality of Godhead killed the demon named Hayagrīva and delivered all the Vedic literatures to Lord Brahmā when Lord Brahmā awakened from sleeping.
Link to this page: https://prabhupadabooks.com/sb/8/24/57