Hi @Roger123 and @wisdom,
thank you for contacting wefugees.
It is totally normal that the Ausländerbehörde wants your passport if you are doing an Ausbildung. This does not mean they will deport you. On the contrary: You'd have bigger problems if you didn't provide a passport. Proving your identity by submitting a passport is part of the game. It is absolutely necessary and you don't have to be afraid.
So be proud of what you already achieved! You're doing an Ausbuldung successfully and are on the best way to getting a residence permit in Germany! Congratulations!
Please note that this is only general advice and cannot replace legal advice.
I hope this helped you a bit.
I hope my answers were helpful and I would be very happy if you would contact me again with further questions. I'm a consultant with mbeon and I‘ll be glad to help you over a longer period of time. Mbeon is an online advice for migrants via the mbeon app, which you can install on your smartphone for free. Download it from App Store or Google Play Store. You can find me in the mbeon app and get confidential individual advice in a secure virtual space without other people reading our conversation. Further information: www.mbeon.de.