It is narrated from Sayyiduna Wa'il bin Hujr (may Allah be pleased with him); he said: "I prayed behind the Messenger of Allah (peace and blessings be upon him). When he (peace and blessings be upon him) recited 'Not of those who have earned [Your] anger, nor of those who are astray', he said 'Amin', so that I heard it while I was behind him (peace and blessings be upon him)."
Hadith Referenceالمعجم الكبير للطبراني / باب الواو / 18261