Śrīmad-Bhāgavatam · Text 3.20.28
Who is speaking and story frame
सोऽवधार्यास्य कार्पण्यं विविक्ताध्यात्मदर्शन: ।
विमुञ्चात्मतनुं घोरामित्युक्तो विमुमोच ह ॥ २८ ॥
so ’vadhāryāsya kārpaṇyaṁ
viviktādhyātma-darśanaḥ
vimuñcātma-tanuṁ ghorām
ity ukto vimumoca ha
The Lord, who can distinctly see the minds of others, perceived Brahmā’s distress and said to him: “Cast off this impure body of yours.” Thus commanded by the Lord, Brahmā cast off his body.
Read Śrīla Prabhupāda's purport on Vedabase.io