How can I recover my external driver?

Hello.

I think I made some mistake. I just found that my external drive(my passport-WDBAAA5000AB) was formatted though I don’t know the reason.

Is there any way to recover the files?

Thank you.

Hello,

You may use a data recovery software. 

There are several kinds of Data Recovery software available. If you do a web search for Data Recovery it will yield plenty of data recovery software options.