There is an obvious example with Heidegger.

https://plato.stanford.edu/entries/heidegger/#Lat

> After Being and Time there is a shift in Heidegger's thinking that he
> himself christened ‘the turn’ (die Kehre). ...
> 
> At root Heidegger's later philosophy shares the deep concerns of Being
> and Time, in that it is driven by the same preoccupation with Being
> and our relationship with it that propelled the earlier work. In a
> fundamental sense, then, the question of Being remains the question.
> However, Being and Time addresses the question of Being via an
> investigation of Dasein, the kind of being whose Being is an issue for
> it. As we have seen, this investigation takes the form of a
> transcendental hermeneutic phenomenology that begins with ordinary
> human experience. It is arguable that, in at least one important
> sense, it is this philosophical methodology that the later Heidegger
> is rejecting when he talks of his abandonment of subjectivity. Of
> course, as conceptualized in Being and Time, Dasein is not a Cartesian
> subject, so the abandonment of subjectivity is not as simple as a
> shift of attention away from Dasein and towards some other route to
> Being. Nevertheless the later Heidegger does seem to think that his
> earlier focus on Dasein bears the stain of a subjectivity that
> ultimately blocks the path to an understanding of Being. This is not
> to say that the later thinking turns away altogether from the project
> of transcendental hermeneutic phenomenology. The project of
> illuminating the a priori conditions on the basis of which entities
> show up as intelligible to us is still at the heart of things. What
> the later thinking involves is a reorientation of the basic project so
> that, as we shall see, the point of departure is no longer a detailed
> description of ordinary human experience. (For an analysis of ‘the
> turn’ that identifies a number of different senses of the term at work
> in Heidegger's thinking, and which in some ways departs from the brief
> treatment given here, see Sheehan 2010.)

Sheehan's The Turn: https://www.academia.edu/34868772/THE_TURN_-_ALL_THREE_OF_THEM

Also, Freud considerably changed his thought with Beyond the Pleasure Principal.