Hi @Tb_24
It is not clear from your question how exactly the Ausbildung ended. You say your employer said he wasn’t certain he would continue the training with you and then you write that you left the company. If he dismissed you from the company, he is obliged to provide you with a dismissal (Kündigung) in writing. If you left the Ausbildung, you are obliged to submit the Kündigung.
Your employer cannot tell or force you to return to your home country. That is a matter for the immigration authorities. He is obliged to inform them about it though. You need to clarify your situation with the immigration office.
If you can show that it was not your fault that you could not continue with the Ausbildung, then you can be given another six months in Germany to **** for a new Ausbildung. The legal basis for this is paragraph 16a, section 4 of the immigration law, here via online translation:
https://***-gesetze--im--internet-de.translate.goog/aufenthg_2004/__16a.html?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp
Best,
Éanna