[Machine] Badr took place one and a half years before the Prophet's migration to Medina, Uhud was a year after that, the Battle of the Trench was in the fourth year, the Banu Mustaliq incident was in the fifth year, the Battle of Khaybar was in the sixth year, the Treaty of Hudaybiyyah was in the year of Khaybar, the conquest of Mecca was in the eighth year, and the Battle of the Trench was in the year of Quraizah.
كَانَتْ بَدْرٌ لِسَنَةٍ وَنِصْفٍ مِنْ مَقْدَمِ رَسُولِ اللهِ ﷺ الْمَدِينَةَ وَأُحُدٌ بَعْدَهَا بِسَنَةٍ وَالْخَنْدَقُ سَنَةَ أَرْبَعٍ وَبَنِي الْمُصْطَلِقِ سَنَةَ خَمْسٍ وَخَيْبَرُ سَنَةَ سِتٍّ وَالْحُدَيْبِيَةُ فِي سَنَةِ خَيْبَرَ وَالْفَتْحُ سَنَةَ ثَمَانٍ وَقُرَيْظَةُ فِي سَنَةِ الْخَنْدَقِ