A rapid and nondestructive near infrared (NIR) method combined with chemometrics was used to discriminate Ganoderma lucidum according to cultivation area. Raw, first, and second derivative NIR spectra were compared to develop a robust classification rule. The chemical properties of G. lucidum samples were also investigated to find out the difference between samples from six varied origins. It could be found that the amount of polysaccharides and triterpenoid saponins in G. lucidum samples was considerably different based on cultivation area. These differences make NIR spectroscopic method viable. Principal component analysis (PCA), discriminant partial least-squares (DPLS) and discriminant analysis (DA) were applied to classify the geographical origins of those samples. The results showed that excellent classification could be obtained after optimizing spectral pre-treatment. For the discriminating of samples from three different provinces, DPLS provided 100% correct classifications. Moreover, for samples from six different locations, the correct classifications of the calibration as well as the validation data set were 96.6% using the DA method after the SNV first derivative spectral pre-treatment. Overall, NIR diffuse reflectance spectroscopy using pattern recognition was shown to have significant potential as a rapid and accurate method for the identification of herbal medicines.