On the Sunnahs of the Sunset Prayer
Riyad as-Salihin (Gardens of the Righteous)
Riyad as-Salihin 1126
Abdullah ibn Mughaffal relates that the Holy Prophet said: Offer two raka‘as before Maghrib; and he repeated it twice, adding the last time: He who may so wish (Bokhari).
Riyad as-Salihin 1127
Anas relates: I noticed the principal companions of the Holy Prophet hastening to the mosque before Maghrib (to offer sunnahs) (Bokhari).
Riyad as-Salihin 1128
Anas relates: In the time of the Holy Prophet we used to offer two raka‘as after sunset before Maghrib. He was asked: Did the Holy Prophet offer them? He answered: He saw us offering them; and did not order us or forbid us (Muslim).
Riyad as-Salihin 1129
Anas relates: When we were in Medina and the muezzin called the Azan for Maghrib the worshippers hastened to the mosque and offered two raka‘as, so much so that a stranger noticing so many doing so would sometimes imagine that the congregational Prayer had been concluded (Muslim).