all to the good
see to the good.
The American Heritage® Idioms Dictionary Copyright © 2002, 2001, 1995 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company.
Examples from the Web for all to the good
Black her eye for love's sake, if you will; but it is all-to-the-good business to do a thing when she wants you to do it.The Trimmed Lamp