Hafs bin Asim narrates that the Prophet ﷺ heard a man giving the adhan for Maghrib, so he responded to his adhan. Hafs says that the Prophet ﷺ went to the man who said "Qad qamatis salah," so the Prophet ﷺ said: "Come, perform the Maghrib prayer with the iqamah of this black slave."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 172
Hadith Takhrijاسناده ضعيف جداً مع ارساله اخرجه البيهقي: 1 / 407 ، 408 - وفى المعرفة السنن والآثار له: 571.