Is it a good practice to keep the search query after the user selected the result?

I'm designing a search flow for an app, and I have a doubt about what to do after the user select an item from the result list and then click the back button. For example:

  1. This is the search screen, which brings all the items available:

enter image description here

  1. This is the screen with the search term:

enter image description here

  1. This is the screen for the item the user selected:

enter image description here

My question is, after the user click the back button on the trird screen, should it go back to first screen, with clean search query, or to the second screen, with the search query?

Thank you!