Did I invalidate my Fajr prayer by saying 3 salams instead of 2?

During one Fajr prayer in jamat, I said 3 salams by mistake, 2 salams before the Imam said the 2nd salam and 1 salam after the Imam said his 2nd salam. Now, my question: was my salah valid, if not what should I do?

بسم الله الرحمن الرحيم

(Fatwa: 163/146/D=02/1435)
Your salah was valid.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband

This answer was collected from the official ifta website of Darul Uloom Deoband in India.

Tags: Fajr, Prayer, SALAH

Link