Muaz bin Rifa bin Rafi reported this. Rifa was among the men of Badr, and Rafi was among those who gave the pledge at Aqaba. Rafi used to say to his son, "It would not please me to have been at Badr in place of Aqaba."He said, Jibreel asked the Prophet ﷺ about this.
حدثنا سليمان بن حرب حدثنا حماد
عن معاذ بن رفاعة بن رافع وكان رفاعة من أهل بدر وكان رافع من أهل العقبة فكان يقول لابنه ما يسرني أني شهدت بدرا بالعقبة قال سأل جبريل النبي ﷺ بهذا