[Machine] I did it with the Messenger of Allah ﷺ , and at that time there was an unbeliever in the throne, meaning Mecca, and it refers to Muawiyah.
فَعَلْتُهَا مَعَ رَسُولِ اللهِ ﷺ وَهَذَا يَوْمَئِذٍ كَافِرٌ فِي الْعَرْشِ يَعْنِي مَكَّةَ وَيَعْنِي بِهِ مُعَاوِيَةَ