Manusmriti
श्रेयसः श्रेयसोऽलाभे पापीयान् रिक्थमर्हति । बहवश्चेत् तु सदृशाः सर्वे रिक्थस्य भागिनः ॥ १८४ ॥
On failure of each better (son), each next inferior (one) is worthy of the inheritance; but if there be many (of) equal (rank), they shall all share the estate.
english translation
zreyasaH zreyaso'lAbhe pApIyAn rikthamarhati । bahavazcet tu sadRzAH sarve rikthasya bhAginaH ॥ 184 ॥
hk transliteration by Sanscript