Śrīmad-Bhāgavatam · Text 3.12.34
Who is speaking and story frame
कदाचिद् ध्यायत: स्रष्टुर्वेदा आसंश्चतुर्मुखात् ।
कथं स्रक्ष्याम्यहं लोकान् समवेतान् यथा पुरा ॥ ३४ ॥
kadācid dhyāyataḥ sraṣṭur
vedā āsaṁś catur-mukhāt
kathaṁ srakṣyāmy ahaṁ lokān
samavetān yathā purā
Once upon a time, when Brahmā was thinking of how to create the worlds as in the past millennium, the four Vedas, which contain all varieties of knowledge, became manifested from his four mouths.
Read Śrīla Prabhupāda's purport on Vedabase.io