Valmiki Ramayana Aranya Kanda Sarga 29 Shloka 19
Original Shlokaकुलं व्यपदिशन्वीरस्समरे कोऽभिधास्यति। मृत्युकाले हि सम्प्राप्ते स्वयमप्रस्तवे स्तवम्।।3.29.19।।
1 source checked for this shloka
मृत्युकाले when death, सम्प्राप्ते comes, वीरः hero, कः who, समरे in war, कुलम् his race, व्यपदिशन् naming, अप्रस्तवे unnecessarily, स्वयम् himself, स्तवम् praise, अभिधास्यति will talk of.
When death comes in a battle no hero will name his race and boast of himself unnessarily.