Walgreens will sell CBD creams, patches and sprays in nearly 1,500 stores in select states, the company told CNBC on Wednesday.

The drugstore chain will sell the cannabis-based products in Oregon, Colorado, New Mexico, Kentucky, Tennessee, Vermont, South Carolina, Illinois and Indiana. Walgreens declined to specify which brands it would carry.

"This product offering is in line with our efforts to provide a wider range of accessible health and wellbeing products and services to best meet the needs and preferences of our customers," Walgreens spokesman Brian Faith said in an email to CNBC.