Narrated `Abdullah bin Masud:
I asked Allah's Messenger (ﷺ), "O Allah's Messenger (ﷺ)! What is the best deed?" He replied, "To offer the prayers at their early stated fixed times." I asked, "What is next in goodness?" He replied, "To be good and dutiful to your parents." I further asked, what is next in goodness? "He replied," To participate in Jihad in Allah's Cause. "I did not ask Allah's Messenger (ﷺ) anymore and if I had asked him more, he would have told me more.(Sahih Bukhari 2785)
And this hadith
Allah's Messenger (ﷺ) was asked, "What is the best deed?" He replied, "To believe in Allah and His Apostle (Muhammad). The questioner then asked," What is the next (in goodness)? He replied, "To participate in Jihad (religious fighting) in Allah's Cause." The questioner again asked, "What is the next (in goodness)?" He replied, "To perform Hajj (Pilgrim age to Mecca) 'Mubrur, (which is accepted by Allah and is performed with the intention of seeking Allah's pleasure only and not to show off and without committing a sin and in accordance with the traditions of the Prophet. (Sahih al Bukhari 26)
The controdiction arise with the second best deed. According to Saheeh 2785 the second best deed is to be nice to your parents,about according to Sahih 26 the second best deed is to do jihad.
What is the explanation for this controdiction?