Buddha left his palace and wife and all his riches. But that does not mean that he can be compared to the mighty prophet Abraham. It sounds good that Buddha a crown prince gave up his life of luxury and opulence for the sake of poor people suffering under a ruthless regime. But in reality he did nothing constructive. He just ran away from a cruel system as he did not have the guts to work towards setting things right unlike Allah's messengers who faught for their people. In fact in my my mind he (Buddha) selected the easiest way out by just giving up his life of luxury. This supposed good action on his part in reality did not bring any relief to the people of his state. His people were still at the mercy of a few brutal thugs in power. In otherwords his personal flight did not change the plight of his suffering people.
In fact he jeapordized the life of his wife and kid by vanishing from the scene. This attitude is called escapism in modern psycological terms. To run away from responsibility. In other words, his message to the world..."The world is bad and the easiest way to get away from it all is to give it up and become a hermit." This is not a productive or practical philosophy. Imagine all people become "yogis" what happens to the world? Therefore, the idea of living a "good life" by getting away from it all and do nothing, is just killing ambition and living a very marginal life.
Running away from problems does not provide any clue how to solve them. We can only solve them by following the guidance in the Quran and have determination to find solutions utilizing our God given gift of brain power. According to the Quran, the people who avoid facing the challenges of everyday life suffer from mental immaturity. Buddha's philosophy that this world is only a place of pain and suffering is contrary to the Quranic ideals.
Therfore unlike Buddha, prophet Abraham did not shun his responsibility to run away in search of some kind of illusion. Prophet Abraham in fact took a stand against the oppressors and their brutal system. To leave things and become a hermit was not his way of facing reality. His objective was to free the people from the shackles binnding them to establish a just society. In fact the Quran says that prophet Abraham faced a dangerous situation. Yet he persisted unlike Buddha.
Thus to compare Buddha in the same sentence with a great prohet is a disservice to that great personality.