Long-term investment in shares can be considered halal if the shares are of companies that comply with Islamic principles. It is important to research and select shares of companies involved in permissible activities, have transparent financial practices, and that align with ethical standards.