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.
bukhari:4107ʿAbdah b. ʿAbdullāh > ʿAbd al-Ṣamad > ʿAbd al-Raḥman > Ibn ʿAbdullāh b. Dīnār from his father > Ibn ʿUmar

The first day (i.e. Ghazwa) I participated in, was the day of Al-Khandaq (i.e. Trench).  

البخاري:٤١٠٧حَدَّثَنِي عَبْدَةُ بْنُ عَبْدِ اللَّهِ حَدَّثَنَا عَبْدُ الصَّمَدِ عَنْ عَبْدِ الرَّحْمَنِ هُوَ ابْنُ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنْ أَبِيهِ أَنَّ ابْنَ عُمَرَ ؓ قَالَ

أَوَّلُ يَوْمٍ شَهِدْتُهُ يَوْمُ الْخَنْدَقِ