ruku

What should the imaam and muqtadi say when coming up from ruku?

Q:

1. Do you have to read samiallahu liman hamidah whilst getting up from rukoo or can you say it after you stand up?

2. Will the salah be invalid or makruh if one says it after getting up?

3. When praying salah in jamat, when the imam says samiallahu liman hamidah does the muqtadi have to say it too or can he just say rabbana lakal hamd?

4. Likewise, does the imam have to say rabbana lakal hamd or does he just say samiallahu liman hamidah and stays quiet after that?