Shiva Purana
एते युगसहस्रांते जायंते पुनरेव हि॥ सर्वदेवनिकायाश्च त्रयस्त्रिंशत्तु कामजाः ॥ १४ ॥
At the end of a thousand Yugas these will be born again. All the groups of the gods are thirty-three.
english translation
ete yugasahasrAMte jAyaMte punareva hi॥ sarvadevanikAyAzca trayastriMzattu kAmajAH ॥ 14 ॥
hk transliteration by Sanscript