Abdullah Muzani 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.

Bukhari 7368

Sahih

حدثنا أبو معمر حدثنا عبد الوارث عن الحسين عن ابن بريدة حدثني

عبد الله المزني

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

البخاري 7368صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhering to the Book and the Sunnah
Chapter
Prohibition by the Prophet ﷺ except what is known to be permitted
Numbering
Darussalam 7368
Bukhari 7368