If you want to cite a work which is referenced in another work, you should try and track down the original source.
However, if this isn’t possible, make it clear in your text where you found the information and only include a reference to the document you’ve read.
Example:
In this example, you've used and read an article by Campbell and Muncer (2018) and they refer to some work carried out by Dunn (2008). Here are three examples of how you can explain that in your work:
Your reference list will include a reference to Campbell and Muncer’s work, but not to Dunn’s.