I’ve only been investing for about 2 years now but here’s my opinion, of course Allah swt knows best. There are many ways you could look at this to be honest. 2-3 stocks are risky for many reasons, but I believe it is better to diversify your portfolio into different sectors (REITS, consumer products, infrastructure, energy, tech, etc) as best you can when creating a portfolio to minimize loss. The less stocks in your portfolio, the riskier.
You also need to think about what type of portfolio you would like to build. Perhaps a dividend portfolio that builds upon itself (realistically giving payouts anywhere from 2-5% depending on what you’re investing in), but keep in mind the value of these stocks usually don’t grow as much as most stocks with lower/no dividend payouts.
Some create “growth” portfolios, or stocks that usually don’t pay dividend at all or minimally, expecting it to grow exponentially over a long period of time. Think Google, Amazon, and tech giants like ServiceNow or Salesforce. This approach is obviously riskier.
If you’re totally unsure which direction to go in, look into a shariah compliant investing platform such as Wahed to manage all of this for you! There are a few others too you can look into.
I have one dividend portfolio, one growth portfolio and one account with Wahed haha I myself couldn’t choose just one route, but perhaps you can.
Hope this helps you get started,