The recurring 'idea' that Napoleon 'abandoned' his army in Egypt and again in Russia is overlooking the facts and is a result of the propaganda of the period.
When Napoleon left for Egypt, he told the Directory that he would return if needed. He made that decision without the knowledge that he had been recalled twice by the Directory. The first recall message was intercepted by the Royal Navy, and he received the second when he landed in France.
Napoleon would not consider leaving his army in Russia until after the Berezina had been successfully crossed. His generals urged him to leave as he was also head of state and he could also raise a new army to come east. He left Murat in command who promptly deserted and Eugene took over.