Shastra

The term is found in several passages of the Rigveda (2nd millennium BCE), such as in hymn VIII.33.16.