Sunan Abi Dawud Book 5, Hadith 26
The Messenger of Allah (ﷺ) would offer two rak'ahs after every obligatory prayer except the dawn and the 'Asr prayer.
The Prophet (ﷺ) prohibited to offer prayer after the afternoon prayer except at the time when the sun is high up in the sky.
Some reliable people testified before me, and among them was Umar ibn al-Khattab, and most reliable in my eyes was Umar: The Prophet of Allah (ﷺ) said: There is no prayer after the dawn prayer until the sun rises; and there is no prayer after the 'Asr prayer until the sun sets.