On expiry, the stock options that are In the Money (ITM) and the futures positions could lead to physical settlement. If the physical settlement causes taking delivery of stock, then you will receive the stocks in your demat account on T+2 day.
For example, if the usual F&O expiry is on Thursday, then your stocks will be settled in your demat account by the evening of Monday.
Can I do intraday trading in stock options?
When does expiry take place for Nifty, Bank Nifty, Sensex, Bankex, and stock option contracts?
What is the margin blocking percentage during the end-of-expiry week for physical settlement of stock option contracts?
When both cash and collateral margins are available, which one is utilized first? What is the order of utilization?