The literal meaning of Mashallah is "God has willed it", in the sense of "what God has willed has happened"; it is used to say something good has happened, used in the past tense. Inshallah, literally "if God has willed", is used similarly but to refer to a future event.