Hey Pooja,
Most babies do this before passing stool. It's just another normal behaviour of the infant. Do not worry until baby is active and feeding well.
Thank you
To know more about me or book video consultation with me please click here(Profile link)