Hi @Rohit Kulkarni ,
Could you please descript your question more clearly? Take database offline or take SQL server instance down? This is a SQL server failover cluster instance environment or SQL server AG environment?
If you want to take SQL server instance down of SQL FCI, you need to shut down all SQL server instance in SQL FCI.
If you want to take SQL DB offline of SQL AG, you need to remove this DB from SQL AG then take that database offline on all AG replicas, or you will get the error message like below.
>The operation cannot be performed on database "AGDB1" because it is involved in a database mirroring session or an availability group. Some operations are not allowed on a database that is participating in a database mirroring session or in an availability group.
>ALTER DATABASE statement failed.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".