It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) used to pray two rak'ahs after every obligatory prayer, except Fajr and Asr."
These are the words of the hadith of Waki' (may Allah have mercy on him).
Ibn Rahwayh (may Allah have mercy on him) narrated it from Waki' (may Allah have mercy on him).
Related hadith on this topic