求仁得仁

Etymology
From the Analects, Book 7 (《論語·述而》):



Idiom

 * 1) to have one's wish fulfilled

Usage notes
This idiom is often used sarcastically nowadays.