It was narrated that ‘Aishah said: “The Prophet (ﷺ) used to pray the Maghrib, then he would come back to my house and pray two Rak’ah.”
It was narrated that Rafi’ bin Khadij said: “We came to the Messenger of Allah (ﷺ) with Banu ‘Abdul-Ashhal, and he led us in praying the Maghrib in our mosque. Then he said: ‘Pray these two Rak’ah in your houses.’”