Hadithcore
Riyad as-Salihin, 1124

Anas (May Allah be pleased with him) reported:

In the lifetime of the Messenger of Allah (ﷺ), we used to perform two Rak'ah (optional prayer) after sunset before the Maghrib prayer. It was asked: "Did Messenger of Allah (ﷺ) perform them?" He replied: "He saw us performing it, but he neither ordered us to perform them nor did he forbid us from doing so." <b>[Muslim]</b>.

وعنه قال‏:‏ كنا نصلي على عهد رسول الله صلى الله عليه وسلم ركعتين بعد غروب الشمس قبل المغرب، فقيل‏:‏ أكان رسول الله صلى الله عليه وسلم صلاها‏؟‏ قال‏:‏ كان يرانا نصليهما فلم يأمرنا ولم ينهنا‏"‏‏.‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 8, Hadith 134
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) The Companions (may Allah be pleased with them) were keen to perform the supererogatory Rak‘ahs associated with the Maghrib prayer.<br> 2) The supererogatory Rak‘ahs before the Maghrib are Sunnah, but they are not confirmed like the Sunnah after Maghrib.
Related hadiths2
Compare isnād across 2 related chains →