Hadithcore
Riyad as-Salihin, 1123

Anas (May Allah be pleased with him) reported:

I saw the principal Companions of Messenger of Allah (ﷺ) rushing to the pillars (of the mosque) to perform two Rak'ah prayers behind them before the Maghrib prayer. <b>[Al-Bukhari]</b>.

- وعن أنس، رضي الله عنه قال‏:‏ لقد رأيت كبار أصحاب رسول الله صلى الله عليه وسلم يبتدرون السواري عند المغرب‏.‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 8, Hadith 133
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.