Why did Amir let Hassan go in The Kite Runner?

In the eyes of Amir as a child, Hassan was just his servant and a playmate. However, Amir’s father treated Hassan like a son. Of course Amir felt jealous. . But when he grew up, Amir missed Hassan deeply. For you, thousands of times! I chase, I chase.