Abdullah bin Mughafal reported,

The Prophet ﷺ said, "Pray before the Maghrib prayer." On the third time he added, "For whoever wishes," not wanting people to take it as an established sunnah.

Azami 2459

Sahih

عن عبد الله بن مغفل

عن النبي ﷺ قال: صلوا قبل صلاة المغرب. قال في الثالثة: لمن شاء، كراهية أن يتخذها الناس سنة.

الأعظمي 2459صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Sunnah prayers and voluntary prayers in general
Section
Two rakahs before Maghrib
Numbering
Jami al-Kamil 2459 (2nd edition)
Azami 2459