Śrīmad-Bhāgavatam · Text 2.9.40
Who is speaking and story frame
प्रजापतिर्धर्मपतिरेकदा नियमान् यमान् ।
भद्रं प्रजानामन्विच्छन्नातिष्ठत् स्वार्थकाम्यया ॥ ४० ॥
prajāpatir dharma-patir
ekadā niyamān yamān
bhadraṁ prajānām anvicchann
ātiṣṭhat svārtha-kāmyayā
Thus once upon a time the forefather of living entities and the father of religiousness, Lord Brahmā, situated himself in acts of regulative principles, desiring self-interest for the welfare of all living entities.
Read Śrīla Prabhupāda's purport on Vedabase.io