Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:11305Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr Muḥammad b. al-Muʾammal > al-Faḍl b. Muḥammad b. al-Musayyib > Aḥmad b. Ḥanbal > Mūsá b. Dāwud > Mālik b. Anas

[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.  

البيهقي:١١٣٠٥وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرٍ مُحَمَّدُ بْنُ الْمُؤَمَّلِ ثنا الْفَضْلُ بْنُ مُحَمَّدِ بْنِ الْمُسَيِّبِ ثنا أَحْمَدُ بْنُ حَنْبَلٍ ثنا مُوسَى بْنُ دَاوُدَ قَالَ سَمِعْتُ مَالِكَ بْنَ أَنَسٍ قَالَ

كَانَتْ بَدْرٌ لِسَنَةٍ وَنِصْفٍ مِنْ مَقْدَمِ رَسُولِ اللهِ ﷺ الْمَدِينَةَ وَأُحُدٌ بَعْدَهَا بِسَنَةٍ وَالْخَنْدَقُ سَنَةَ أَرْبَعٍ وَبَنِي الْمُصْطَلِقِ سَنَةَ خَمْسٍ وَخَيْبَرُ سَنَةَ سِتٍّ وَالْحُدَيْبِيَةُ فِي سَنَةِ خَيْبَرَ وَالْفَتْحُ سَنَةَ ثَمَانٍ وَقُرَيْظَةُ فِي سَنَةِ الْخَنْدَقِ