He will get his account back,
Why are you so sure?
I went through the same process because i got funds from hacked accounts.
once they froze the account because of illegal activities they will ask you to present yourself for questioning
Have you read what the Op said? that is exactly what is NOT happening!
If you are doing transactions through P2P you cannot definitively identify the source and the sender are the same individual and you might receive funds from hacked bank and UPI transactions. I never said the OP knowingly did any illegal activities but if you are receiving funds from hacked bank accounts then you will be booked and you need to explain what really happened to the investigating agency.
and then you will not get into trouble,
Again, how do you know that?
I explained that earlier, i received funds from hacked account while trading P2P back in 2015/ 2016 and the investigation reached me around 2017 if i remember correctly and hence i explained the procedure.
but he will not get the amount credited through hacked account.
What hacked account? Whoever said anything of a hacked account?
As explained earlier, he might have received funds from hacked bank account and hence his account is frozen and he will be asked to report for questioning by the investigating agency on how he got the funds.