I heard Messenger of Allah ﷺ saying, "There is no prayer after the morning prayer till the sun rises, and there is no prayer after the ʿAsr prayer till the sun sets."
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ لاَ صَلاَةَ بَعْدَ الصُّبْحِ حَتَّى تَرْتَفِعَ الشَّمْسُ وَلاَ صَلاَةَ بَعْدَ الْعَصْرِ حَتَّى تَغِيبَ الشَّمْسُ