When you use the information from a source where the author has referred to another person's work, it is called secondary referencing.
Ideally when you want to refer to work cited by others, you should go back to the original work to check how the information has been expressed. If you do use work that has already been cited by some-one else, there is the potential for the meaning of the work to have been emphasised differently from how the original author intended. You need to be aware are reading this work in light of someone-else's opinion.
You will need to cite the original author and that this has been cited in the work you are using.
Roy (1976), as cited in Walker (2020), proposed the need to consider contextual stimuli in influencing the adaptive or maladaptive response of the person to changes in their health.
Consideration of contextual stimuli can influence the adaptive or maladaptive response to changes in a person’s health (Roy, 1976 cited in Walker, 2020, p.358).
Walker, L.O. (2020) Gifts of wise women: A reflection on enduring ideas in nursing that transcend time. Nursing Outlook, 68(3), 355-364.
Note: This reference needs to identify the resource you read where the information is cited, not the original work. It is the secondary source that is referenced in the reference list.