vedāś catvāra uddhṛtāḥ
itihāsa-purāṇaṁ ca
pañcamo veda ucyate
The 4 divisions of the original sources of knowledge [the Vedas] were made separately. But the historical facts and authentic stories mentioned in the Purāṇas are called the 5th Veda.
cc : @TIinExile , @Aadii009