Srimad Bhagavatam Canto 10, Chapter 45, Text 13

SB 10.45.13

aha casman maha-raja
 prajas cajñaptum arhasi
yayati-sapad yadubhir
 nasitavyam nrpasane
 
Translation: 
 
The Lord told him: O mighty King, We are your subjects, so please command Us. Indeed, because of the curse of Yayati, no Yadu may sit on the royal throne.
 
Purport: 
 
Ugrasena might have told the Lord, “My dear Lord, it is actually You who should sit on the throne.” Anticipating this statement, Lord Krsna told Ugrasena that because of Yayati’s ancient curse, princes in the Yadu dynasty could technically not sit on the royal throne, and therefore Krsna and Balarama were disqualified. Of course, Ugrasena also could be considered part of the Yadu dynasty, but by the order of the Lord he could sit on the royal throne. In conclusion, these were all pastimes the Supreme Lord enjoyed as He played the part of a human being.
Srimad Bhagavatam Canto 10, Chapter 45, Text 12
Srimad Bhagavatam Canto 10, Chapter 45, Text 14