Srimad Bhagavatam Canto 09, Chapter 21, Text 15

SB 9.21.15

tasya tribhuvanadhisah
 phaladah phalam icchatam
atmanam darsayam cakrur
 maya visnu-vinirmitah
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Demigods like Lord Brahma and Lord Siva, who can satisfy all materially ambitious men by giving them the rewards they desire, then manifested their own identities before King Rantideva, for it was they who had presented themselves as the brahmana, sudra, candala and so on.
Srimad Bhagavatam Canto 09, Chapter 21, Text 14
Srimad Bhagavatam Canto 09, Chapter 21, Text 16