Mukhtar bin Fulful reported,

Ati said, I asked Anas bin Malik about offering voluntary prayers after Asr.He replied, "Umar used to strike people's hands to stop them from praying after Asr. During the time of the Prophet ﷺ, we used to pray two units after sunset, before the Maghrib prayer."I asked him, "Did the Messenger of Allah ﷺ himself pray these two units?"He answered, "He would see us praying them, and he neither commanded us to do so nor forbade us from it."

Muslim 1938

Sahih

و حدثنا أبو بكر بن أبي شيبة وأبو كريب جميعا عن ابن فضيل قال أبو بكر حدثنا محمد بن فضيل

عن مختار بن فلفل قال

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

مسلم 1938صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Recommendation of two rakahs before Maghrib prayer
Numbering
Darussalam 1938
Muslim 1938