Al-Ilmam bi-Ahadith al-Ahkam 319
وَرَوَى مُسلم عَن أنس بن مَالك رَضِيَ اللَّهُ عَنْه، حَدِيثا فِيهِ: وَكُنَّا (نصلي) عَلَى عهد رَسُول الله ﷺ ، رَكْعَتَيْنِ بعد غرُوب الشَّمْس قبل صَلَاة الْمغرب، فَقلت لَهُ: أَكَانَ رَسُول الله ﷺ صلاهما؟ قَالَ: " كَانَ يَرَانَا نصلِّيهما فَلم يَأْمُرنَا، وَلم ينهنا ".
And Muslim narrated from Anas ibn Malik, may Allah be pleased with him, a hadith in which [he said]: In the time of the Messenger of Allah ﷺ we used to (pray) two rakʿahs after sunset, before the Maghrib prayer. I said to him: "Did the Messenger of Allah ﷺ pray them?" He said: "He used to see us praying them, and he neither ordered us nor forbade us."