Rinse the lentils under running water or soak for at least 15 minutes in lukewarm water, then strain and discard the water.
Meanwhile, chop the onion, garlic, and mushrooms. Heat oil in a large skillet/frying pan, stir in the onion and garlic and sauté for 3 minutes over medium heat.