Jesus performed seven (7) major miracles as recorded by the book of John:
These miracles were recorded so that Christians can believe and receive life in His name John 20: 30 - 31
The miracle of the raising of Lazarus from the dead is quite significant as it teaches us that:
Jesus on getting to Bethany asked for the location of the burial to identify the source, then He prayed, and then exercised His power, commanding/calling on Lazarus to come forth.
However, Lazarus though alive was:
Though Jesus Christ raised Lazarus from the dead, yet he was being set free by the people around (on the command of Jesus Christ)