The works of Ādi Śaṅkarācārya

Sanatsujātīyam

p. 281

p. 281

एतेन ब्रह्मचर्येण देवा देवत्वमाप्नुवन् ।

In plain words

It was by this brahmacarya that the gods won their godhood.

Close to the Sanskrit

By this brahmacarya the gods obtained godhood.