On the sunna before and after Maghrib

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

201. Chapter: On the sunna before and after Maghrib

1122. 'Abdullah ibn Mughaffal reported that the Prophet, may Allah bless him and grant him peace, said, "Pray before Maghrib," and the third time he said, "for anyone who wishes to do so." [al-Bukhari]

1123. Anas said, "I saw the great Companions of the Messenger of Allah, may Allah bless him and grant him peace, go quickly to the pillars at Maghrib." [al-Bukhari]

1124. Anas said, "In the time of the Messenger of Allah, we used to pray two rak'ats after sunset before Maghrib." It was said, "Did the Messenger of Allah, may Allah bless him and grant him peace, pray them." He said, "He used to see us pray them and he neither commanded nor forbade us." [Muslim]

1125. Anas said, "When we were in Madina and the mu'adhdhin gave the adhan for the Maghrib prayer, people would go quickly to the pillars and do two rak'ats, so that if a man who was a stranger entered the mosque he would suppose that the prayer had already been prayed due to the great number of people praying those two rak'ats." [Muslim]