Hello @Umer Aslam
The EdgeHub persists them for you.
You are able to provide a file system location of your own choice.
See the documentation here and especially here.
Microsoft provides this MS Learn module.
See also this example
This temporary storage is protected and managed by the EdgeHub module.
If you want to persist it to share it, either route the message to some containerized database or the Blob Storage module.