He performed tawaf with Muaz bin Afra and did not pray afterward.I asked him, "Are you not going to pray?"He replied, "The Messenger of Allah ﷺ said, 'There is no prayer after Asr until the sun sets, and no prayer after Fajr until the sun rises.'"
أخبرنا أبو داود قال حدثنا سعيد بن عامر قال حدثنا شعبة عن سعد بن إبراهيم
أنه طاف مع معاذ ابن عفراء فلم يصل فقلت ألا تصلي فقال إن رسول الله ﷺ قال لا صلاة بعد العصر حتى تغيب الشمس ولا بعد الصبح حتى تطلع الشمس
[Its chain of transmission is daif] Ahmad recorded it in Musnad Ahmad 4/219 through the hadith of Shubah, with the same wording. Nasr is of unknown status, and there is another flaw in it as well. See Isabah 3/428, entry 08039.