Anas bin Malik reported,

I prayed the two rakahs before Maghrib during the time of the Messenger of Allah ﷺ.I said to Anas, "Did the Messenger of Allah ﷺ see you doing this?"He replied, "Yes, he saw us, but he neither commanded us nor forbade us."

Abu Dawud 1282

Sahih

حدثنا محمد بن عبد الرحيم البزاز أخبرنا سعيد بن سليمان حدثنا منصور بن أبي الأسود عن المختار بن فلفل

عن أنس بن مالك قال

صليت الركعتين قبل المغرب على عهد رسول الله ﷺ قال قلت لأنس أرآكم رسول الله ﷺ قال نعم رآنا فلم يأمرنا ولم ينهنا

أبو داود 1282صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Voluntary prayers
Chapter
Prayer before Maghrib
Numbering
Darussalam 1282
Abu Dawud 1282