Dear
@Ali112,
thank you for your question in the community.
As for your question please follow the link below:
https://***.wefugees.de/801654/married-wife-until-apply-permanent-residence-permit-germany
Further in order to obtain the permanent residency after three years you need to have C1 language certificate and have worked the entire time, plus have some kind qualifications(professional or academic).
If you need further guidance please do not hesitate to reach out to the community.
Best regards,
Nilab