They are both grammatically correct.
Which one to use will depend on the full context:
he repented that he had been >> past action
he repented that he was >> current action
The old man repented that he had been/was idle.
Do both had been and was fit in the above context? Thanks.
They are both grammatically correct.
Which one to use will depend on the full context:
he repented that he had been >> past action
he repented that he was >> current action
Thanks, Anglika.
I get it now.