Hello Fazil
Welcome to the Wefugees community and thank you for your question.
Even though you didn't apply for asylum in Germany, Dublin III will come into play in this case. France will refer you back to Germany because it already issued you a residence permit and thereby becomes responsible for your asylum application.
Dublin III Article 12 (1): "Where the applicant is in possession of a valid residence document, the Member State which issued the document shall be responsible for examining the application for international protection."
Best regards,
Thorgen