魚心あれば水心あり

Etymology
Literally, "if the water is kind to the fish, the fish will be kind to the water".

Idiom

 * 1) if you show someone favor, they will show favor to you in return