It is narrated from Sayyiduna Anas (may Allah be pleased with him) that "The Prophet (peace and blessings be upon him) performed qunut for one month, supplicating against (certain tribes of the polytheists), then he left it; as for the Fajr prayer, he (peace and blessings be upon him) continued to perform qunut in it until he (peace and blessings be upon him) departed from this world."
Related hadith on this topic