One verse

Srimad Bhagavatam 9.1.40

9.1.40

आचार्यानुग्रहात् कामं लब्ध्वा पुंस्त्वं व्यवस्थया । पालयामास जगतीं नाभ्यनन्दन् स्म तं प्रजा: ॥ ४० ॥

acaryanugrahat kamam labdhva pumstvam vyavasthaya palayam asa jagatim nabhyanandan sma tam prajah

acarya-anugrahat
by the mercy of the spiritual master
kamam
desired
labdhva
having achieved
pumstvam
maleness
vyavasthaya
by this settlement of Lord Siva
palayam asa
he ruled
jagatim
the whole world
na abhyanandan sma
were not satisfied with
tam
to the king
prajah
the citizens.

Thus being favored by the spiritual master, according to the words of Lord Siva, Sudyumna regained his desired maleness every alternate month and in this way ruled the kingdom, although the citizens were not satisfied with this.