There are three ways to perform the iqamah:
1. Saying the first takbir four times and everything else twice, with the exception of the last statement of la ilaha illal-lah. Abu Mahzhura said that the Prophet, upon whom be peace, taught him the iqamah consisting of seventeen phrases: Allahu akbar (4 times), ashhadu alla ilaha illal-lah (twice), ashhadu anna Muhammad arRasool-lal-lah (twice), hayya ‘alas-salah (twice), hayya ‘alal-falah (twice), qad qaamatis-salah (twice), Allahu akbar, Allahu akbar. La ilaha illal-lah. This is related by “the five.” At-Tirmizhi grades it
2. To say the beginning and ending takbir, and the phrase qad qaamatus-salah twice. Everything else is to be said once, making eleven phrases. This is based on the preceding hadith of ‘Abdullah ibn Zaid: “When you stand for the prayer, say “Allahu akbar, Allahu akbar. Ashhadu alla illaha illal-lah, ashhadu anna Muhammad ar-RasoolAllah. Hayya ‘alas-salah, hayya ‘alal-falah. Qad qaamat-issalah, qad qaamatis-salah. Allahu akbar, Allahu akbar. La illaha illal-lah.
3. The same as in the preceding, but Qad qaamatus-salah is said only once, making a total of ten phrases. Imam Malik chose this way, because he found the people of Madinah performing it thus. But says Ibn al-Qayyim, “It is not proven that the Messenger of Allah ever said ‘Qad qaamatus-salah’ only once.” Ibn ‘Abdul-Barr is of the view, “In every case, it is said twice.”