“I came to the Messenger of Allah (ﷺ) and said: ‘O Messenger of Allah, I want to go for Jihad with you, seeking thereby the Face of Allah and the Hereafter.’ He said: ‘Woe to you! Is your mother still alive?’ I said: ‘Yes.’ He said: ‘Go back and honor her.’ Then I approached him from the other side and said: ‘O Messenger of Allah, I want to go for Jihad with you, seeking thereby the Face of Allah and the Hereafter.’ He said: ‘Woe to you! Is your mother still alive?’ I said: ‘Yes.’ He said: ‘Go back and honour her.’ Then I approached him from in front and said: ‘O Messenger of Allah, I want to go for Jihad with you, seeking thereby the Face of Allah and the Hereafter.’ He said: ‘Woe to you! Is your mother still alive?’ I said: ‘Yes.’ He said: ‘Go back and serve her, for there is Paradise.’”

Another chain reports a similar hadith.

Ibn Majah said: This is Jahimah bin 'Abbas bin Mirdas As-Sulaimi who criticized the Prophet ﷺ the Day of Hunain.
Sunan Ibn Majah Book 24, Hadith 29