Let's say I get a lot of very good backlinks to siteA and siteA redirects to siteB (301, permanent).

Which one will get the juice, the pagerank? Which url will have a boost in the SERP? siteA or siteB?