"The Messenger of Allah joined Maghrib and Isha with no (Voluntary) prayer in between them. He prayed Maghrib with three Rakahs and Isha with two." And Abdullah bin Umar used to join them in like manner until he met Allahm, The Mighty and Sublime.
جَمَعَ رَسُولُ اللَّهِ ﷺ بَيْنَ الْمَغْرِبِ وَالْعِشَاءِ لَيْسَ بَيْنَهُمَا سَجْدَةٌ صَلَّى الْمَغْرِبَ ثَلاَثَ رَكَعَاتٍ وَالْعِشَاءَ رَكْعَتَيْنِ وَكَانَ عَبْدُ اللَّهِ بْنُ عُمَرَ يَجْمَعُ كَذَلِكَ حَتَّى لَحِقَ بِاللَّهِ ﷻ