Sorry for your loss.
Here's what you can do in this case:
Request access to an Apple Account as a Legacy Contact - Apple Support
If you are not listed as a Legacy Contact:
...
Request access with a court order or other legal documentation
In the U.S., Israel, and other locales, you can request access to a deceased person’s Apple Account with a court order. If your request is granted, you can access certain data they stored in their Apple Account. Some data might be end-to-end encrypted and Apple isn’t able to decrypt it. If their data is encrypted, you might be prompted to enter a device passcode for your loved one’s Apple device or enter other information before accessing the data.
The court order must name you as the rightful inheritor of your loved one’s personal information. Only one person can request access to a deceased person’s Apple Account. In some jurisdictions (such as France, Germany, Japan, Australia, and New Zealand), alternative documentation and process instead of a court order are accepted. Where applicable, the court order needs to specify:
- The name and Apple Account of the deceased person.
- The name of the next of kin who is requesting access to the decedent’s account.
- That the decedent was the user of all accounts associated with the Apple Account.
- That the requestor is the decedent’s legal personal representative, agent, or heir, whose authorization constitutes “lawful consent”.
- That Apple is ordered by the court to assist in the provision of access to the decedent’s information from the deceased person’s accounts. The court order should be addressed to the relevant Apple entity.
If you have a court order with this information, or if you need additional help, please contact Apple Support.
...
copied from: Request access to a deceased family member’s Apple Account - Apple Support