Agnibheda–Vaṃśa: Forms of Agni, Their Functions, and Progeny (अग्निभेद-वंशः)
सह रक्षो ऽसुराणां तु त्रयाणां तु त्रयो ऽग्नयः / एतेषां पुत्रपौत्रास्तु चत्वारिंशन्न वैव तु
saha rakṣo 'surāṇāṃ tu trayāṇāṃ tu trayo 'gnayaḥ / eteṣāṃ putrapautrāstu catvāriṃśanna vaiva tu
Including the rākṣasas and the asuras, for those three there are three Agnis; and their sons and grandsons together are indeed forty.