If the company whose shares you bought does not deal in (Part No. 14; Page No. 301) anything Haram (prohibited), such as Riba (usury/interest) or anything else, the profits are Halal (lawful). However, if they deal in anything Haram, it is not permissible to have shares in it and its profits are Haram. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.