From Sahih Bukhari (Hadith 5972):
Narrated `Abdullah bin `Amr:A man said to the Prophet, "Shall I participate in Jihad?" The Prophet (ﷺ) said, "Are your parents living?" The man said, "Yes." the Prophet (ﷺ) said, "Do Jihad for their benefit
Reference: Bukhari 5972