Welcome to the Wefugees community and thank you for your question!
I've had a **** and if you type in "passport Standesamt" in the search bar of our platform, many threads come up where similar questions have been asked and answered. This one for example:
Could I be deported if I hand in my passport at Standesamt in order to get married?
Thorgen's answer on the thread should give you all the information you need. Of course you can reach out to us again if you need any further assistance!
All the best,