In basketball if a blocked shot stays in bounds who gets credit for the rebound- the player who blocked the shot or the player that retrieved the ball?

The player that retrieved the ball. The blocker is credited with a block.