"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. (Using translation from Nasāʾī 3029)
«جَمَعَ رَسُولُ اللهِ ﷺ بَيْنَ الْمَغْرِبِ وَالْعِشَاءِ بِجَمْعٍ لَيْسَ بَيْنَهُمَا سَجْدَةٌ صَلَّى الْمَغْرِبَ ثَلَاثَ رَكَعَاتٍ وَصَلَّى الْعِشَاءَ رَكْعَتَيْنِ» وَكَانَ عَبْدُ اللهِ بْنُ عُمَرَ يَجْمَعُ كَذَلِكَ حَتَّى لَحِقَ بِاللهِ