The Prophet (peace and blessings be upon him) forbade praying after Fajr until the sun rises, and after Asr until the sun sets.