Many prophets showed miracles in order to prove the authenticity of their mission and to establish proof of their Prophet hood. Miracles are actions that astonish onlookers by displaying an act which cannot be carried out by those who see it. Although this action is believed as an action of the Prophet, it is truly an event which is created by Allah through the hands of the Prophet.
Our Prophet Muhammad (SAW) was also granted a number of miracles including:
I) The glorification of Allah bu the Prophet's meals
II) The speaking antelope
III) The house that joined in the supplication of the Prophets by saying Aameen
IV) Pebbles that began to praise Allah in his blessed palm
V) The weeping date-palm trunk
VI) The prostrating trees and rocks.... & countless additional miracles for people to recognise the truth & learn from them