Is the voicemail through an app on the phone? or is it actually through your carrier's/service provider's system.
If it is the latter, then you would need to contact your carrier/service provider to see if it is possible to retrieve it.
If it is the former, then it is going to depend on what voicemail app it is. All of them have different settings.