I generated Hash from AppSignatureHelper class which works for debug build, same didn't work for release build, so I generated a hash using keystore and alias using command https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string and updated to SMS text, this too didn't work.
Finally this solved my problem How to generate 11 char hash key for Sms Retriever with Google App signing
The solution mentioned by @farhan in his question helped