Srimad Bhagavatam Canto 03, Chapter 06, Text 11

SB 3.6.11

atha tasyabhitaptasya
 katidhayatanani ha
nirabhidyanta devanam
 tani me gadatah srnu
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Maitreya said: You may now hear from me how the Supreme Lord separated Himself into the diverse forms of the demigods after the manifestation of the gigantic universal form.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
The demigods are separated parts and parcels of the Supreme Lord, as are all other living entities. The only difference between the demigods and the ordinary living entities is that when the living entities are rich in pious acts of devotional service to the Lord, and when their desire to lord it over material energy has vanished, they are promoted to the posts of demigods, who are entrusted by the Lord with executing the management of the universal affairs.
Srimad Bhagavatam Canto 03, Chapter 06, Text 10
Srimad Bhagavatam Canto 03, Chapter 06, Text 12