make something worth somebody's while
make (something) worth (one's) while
To ensure that something is beneficial to someone or not a waste of their time. I was reluctant to do research at a different library, but it turned out to be totally worth my while, as they had a ton of books on my topic! Staying up late tonight won't be worth my while because then I'll be exhausted the whole rest of the week.