On expiry, the stock options that are In the Money (ITM) and futures positions will 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. 

However, if the usual F&O expiry is on Thursday, then your stocks will be settled in your demat account by the evening of Monday.