Sayyiduna Abu Bakrah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) led the people in the Maghrib prayer in fear, three rak'ahs. Then they left, and the other group came, and he (peace and blessings be upon him) led them too in three rak'ahs of prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخوف / 6038