It is narrated from Sayyiduna Thawban (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "There are three things with which no deed benefits: associating partners with Allah, disobedience to parents, and fleeing from the battlefield."
Hadith Referenceالمعجم الكبير للطبراني / باب الثاء / 1407