Bulugh al-Maram
Book 2, Hadith 265
Arabic hadith text
وَفِي رِوَايَةِ اِبْنِ حِبَّانَ : { أَنَّ اَلنَّبِيَّ - صلى الله عليه وسلم -صَلَّى قَبْلَ اَلْمَغْرِبِ رَكْعَتَيْنِ } 11 - صحيح ، رواه ابن حبان ( 1588 ) ، وتمامه : ثم قال : " صلوا قبل المغرب ركعتين " ثم قال عند الثالثة : " لمن شاء " خاف أن يحسبها الناس سنة .
Translation
Ibn Hibban’s narration says that the Prophet (peace and blessings be upon him) prayed two rakahs before the sunset prayer. Authentic; Ibn Hibban (1588). The full wording is: ‘Pray two rakahs before the sunset prayer.’ Then on the third time he said, ‘For whoever wishes,’ fearing people would consider it a regular Sunnah.