كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(55)
Chapter: It is recommended to pray two rak`ah before Maghrib
(55)
باب اسْتِحْبَابِ رَكْعَتَيْنِ قَبْلَ صَلاَةِ الْمَغْرِبِ ‏
Sahih Muslim 836

Mukhtar b. Fulful said:

I asked Anas b. Malik about the voluntary prayers after the afternoon prayer, and he replied: 'Umar struck hit hands on prayer observed after the 'Asr prayer and we used to observe two rak'ahs after the sun set before the evening prayer during the time of the Messenger of Allah (ﷺ). I said to him: Did the Messenger of Allah (ﷺ) observe them? He said: He saw us observing them, but he neither commanded us nor forbade us to do so.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ جَمِيعًا عَنِ ابْنِ فُضَيْلٍ، - قَالَ أَبُو بَكْرٍ حَدَّثَنَا مُحَمَّدُ بْنُ فُضَيْلٍ، - عَنْ مُخْتَارِ بْنِ فُلْفُلٍ، قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ عَنِ التَّطَوُّعِ، بَعْدَ الْعَصْرِ فَقَالَ كَانَ عُمَرُ يَضْرِبُ الأَيْدِي عَلَى صَلاَةٍ بَعْدَ الْعَصْرِ وَكُنَّا نُصَلِّي عَلَى عَهْدِ النَّبِيِّ صلى الله عليه وسلم رَكْعَتَيْنِ بَعْدَ غُرُوبِ الشَّمْسِ قَبْلَ صَلاَةِ الْمَغْرِبِ ‏.‏ فَقُلْتُ لَهُ أَكَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم صَلاَّهُمَا قَالَ كَانَ يَرَانَا نُصَلِّيهِمَا ‏.‏ فَلَمْ يَأْمُرْنَا وَلَمْ يَنْهَنَا.
Reference : Sahih Muslim 836
In-book reference : Book 6, Hadith 366
USC-MSA web (English) reference : Book 4, Hadith 1820
  (deprecated numbering scheme)