You asked:

was prince william born in st mary's hospital

Yes. St Mary's Hospital, London is the birthplace of Prince William of Wales.
Prince William of Wales
Prince William of Wales
Prince William of Wales

St Mary's Hospital, London
St Mary's Hospital, London
St Mary's Hospital, London