One verse

Srimad Bhagavatam 10.45.29

10.45.29

ततश्च लब्धसंस्कारौ द्विजत्वं प्राप्य सुव्रतौ । गर्गाद् यदुकुलाचार्याद्गायत्रं व्रतमास्थितौ ॥ २९ ॥

tataś ca labdha-saṁskārau dvijatvaṁ prāpya su-vratau gargād yadu-kulācāryād gāyatraṁ vratam āsthitau

tataḥ
then
ca
and
labdha
having received
saṁskārau
initiation (Kṛṣṇa and Balarāma)
dvijatvam
twice-born status
prāpya
attaining
su-vratau
sincere in Their vows
gargāt
from Garga Muni
yadu-kula
of the Yadu dynasty
ācāryāt
from the spiritual master
gāyatram
of celibacy
vratam
the vow
āsthitau
assumed

After attaining twice-born status through initiation, the Lords, sincere in Their vows, took the further vow of celibacy from Garga Muni, the spiritual master of the Yadus.