Śrīmad-Bhāgavatam · Text 7.11.35
Who is speaking and story frame
यस्य यल्लक्षणं प्रोक्तं पुंसो वर्णाभिव्यञ्जकम् ।
यदन्यत्रापि दृश्येत तत्तेनैव विनिर्दिशेत् ॥ ३५ ॥
yasya yal lakṣaṇaṁ proktaṁ
puṁso varṇābhivyañjakam
yad anyatrāpi dṛśyeta
tat tenaiva vinirdiśet
If one shows the symptoms of being a brāhmaṇa, kṣatriya, vaiśya or śūdra, as described above, even if he has appeared in a different class, he should be accepted according to those symptoms of classification.
Read Śrīla Prabhupāda's purport on Vedabase.io