Imam al-Nawawi's introduction to this chapter
تقدم في هذه الأبواب حديثُ ابن عمر وحديث عائشة، وهما صحيحان: أنَّ النبيَّ - صلى الله عليه وسلم - كَانَ يُصَلِّي بَعدَ المَغْرِبِ رَكْعَتَيْنِ.
In these chapters the hadith of Sayyiduna Ibn Umar (may Allah be pleased with them both) and the hadith of Sayyidah Aishah (may Allah be pleased with her) have already passed, and both are sahih, that the Prophet (peace and blessings be upon him) used to pray two rak'ahs after Maghrib. (See hadith no. 1098 and 1115)
وعن عبد الله بن مُغَفَّل - رضي الله عنه - عن النبيِّ - صلى الله عليه وسلم - قَالَ: «صَلُّوا قَبْلَ المَغْرِبِ» قال في الثَّالِثَةِ: «لِمَنْ شَاءَ». رواه البُخَارِيُّ.
It is narrated from Sayyiduna Abdullah bin Mughaffal (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Pray (two rak'ahs) before Maghrib." The third time he said: "For whoever wishes (to pray)."
(Narrated by al-Bukhari)
وعن أنس - رضي الله عنه - قَالَ: لَقَدْ رَأيْتُ كِبَارَ أصْحَابِ رَسُولِ اللهِ - صلى الله عليه وسلم - يَبْتَدِرُونَ السَّوَارِيَ عِندَ المَغْرِبِ. رَوَاهُ البُخَارِيُّ.
It is narrated from Sayyiduna Anas (may Allah be pleased with him); he said: I saw the senior Companions of the Messenger of Allah (peace and blessings be upon him) hastening to the pillars at the time of (the adhan of) Maghrib.
(Narrated by al-Bukhari)
وعنه، قَالَ: كُنَّا نصلِّي عَلَى عهدِ رسولِ اللهِ - صلى الله عليه وسلم - رَكْعَتَيْنِ بَعْدَ غُرُوبِ الشَّمْسِ قَبْلَ المَغْرِبِ، فَقِيلَ: أكَانَ رسولُ الله - صلى الله عليه وسلم - صَلاَّهما؟ قَالَ: كَانَ يَرَانَا نُصَلِّيهِمَا فَلَمْ يَأمُرْنَا وَلَمْ يَنْهَنَا. رواه مسلم.
It is narrated from him (Sayyiduna Anas, may Allah be pleased with him); he said: In the time of the Messenger of Allah (peace and blessings be upon him) we used to pray two rak'ahs after sunset, before the Maghrib (prayer). It was asked: Did the Messenger of Allah (peace and blessings be upon him) also pray these two rak'ahs? He said: He (peace and blessings be upon him) used to see us praying them, and he neither ordered us nor forbade us.
(Narrated by Muslim)
وعنه، قَالَ: كُنَّا بِالمَدِينَةِ فَإذَا أذَّنَ المُؤَذِّنُ لِصَلاَةِ المَغْرِبِ، ابْتَدَرُوا السَّوَارِيَ، فَرَكَعُوا رَكْعَتَيْنِ، حَتَّى إنَّ الرَّجُلَ الغَريبَ لَيَدْخُلُ المَسْجِدَ فَيَحْسَبُ أنَّ الصَّلاَةَ قَدْ صُلِّيَتْ مِنْ كَثْرَةِ مَنْ يُصَلِّيهِمَا. رواه مسلم.
It is narrated from him (Sayyiduna Anas, may Allah be pleased with him); he said: We were in Madinah; when the muezzin gave the adhan for the Maghrib prayer, the people would rush to the pillars and pray two rak'ahs, so much so that a stranger entering the mosque would think the prayer had already been prayed, because of the great number of those praying these two rak'ahs.
(Narrated by Muslim)