There are a few ways that you can identify retracted articles while searching:
Can I cite a retracted paper?
Retraction Watch advise that it is perfectly fine to cite a retracted paper as long as the retraction is noted.
What do I do if a paper I cited was later retracted?
While it is important to know what to do with retracted papers you come across while searching, it is just as important to know what to do if a paper you've cited is retracted after you have published.
See the below links to Retraction Watch for further information on both of these questions: