an analytic function from unit disk to unit disk with two fixed point

Solution 1:

I thought if one of the fixed points were zero by the Schwarz lemma this statement is easily proved.

Good. So it remains to reduce the general case to the known special case.

Let $T$ be an automorphism of $\mathbb{D}$. What do you know about $T^{-1}\circ f \circ T$? Can you find a condition on $T$ that reduces the problem to the known case?