よりによって

Etymology
From.

Conjunction

 * 1) of all

Usage notes
Used to lament a particularly undesirable outcome or choice.