Ali ibn Abi Talib may Allah be pleased with him arrived from Najran to Makkah in Dhu al-Hijjah of Year 10 after the Hijrah (10 AH) to perform Hajj with the Prophet ﷺ
Ali ibn Abi Talib may Allah be pleased with him arrived from Najran to Makkah in Dhu al-Hijjah of Year 10 after the Hijrah (10 AH) to perform Hajj with the Prophet ﷺ.

Ali ibn Abi Talib may Allah be pleased with him arrived from Najran to Makkah in Dhu al-Hijjah of Year 10 after the Hijrah (10 AH) to perform Hajj with the Prophet ﷺ.
It falls within the events of Year 10, just before The Farewell Pilgrimage and the events connected to Hajj.
And in Dhu al-Hijjah of this year, Ali ibn Abi Talib may Allah be pleased with him came from Najran to Makkah to perform Hajj with the Prophet ﷺ.
This means that Ali may Allah be pleased with him came from Najran to Makkah during the Hajj season, and he intended to perform Hajj with the Prophet ﷺ.
Those who collected the zakah: We have learned from what came before that the Messenger of Allah ﷺ returned to Madinah at the end of the eighth year. As soon as the crescent of Muharram of year 9 AH appeared, the Messenger of Allah ﷺ sent the collectors of zakah to the tribes. Their list is as follows: 1 — Uyaynah ibn Hisn to Banu Tamim. 2 — Yazid ibn al-Husayn to Aslam and Ghifar. 3 — 'Abbad ibn Bashir al-Ashhali to Sulaym and Muzaynah.
Mentioning that Ali may Allah be pleased with him came for Hajj in Year 10 after the Hijrah (10 AH).
Showing the Companions' closeness to the Prophet ﷺ in worship.
He came from Najran to Makkah to perform Hajj with the Prophet ﷺ
Eagerness to perform Hajj with the Prophet ﷺ.
Being keen to join people of virtue in acts of obedience when possible.
Hastening to seasons of goodness and worship.
It is limited to the meaning clearly understood from the information.
A Muslim should seek places of goodness and worship and take part in them with righteous people.