This is not permissible to take, as most likely, he is a soothsayer. Since when sheikhs prescribe pills?

Sheik, my baby is 33 days . While waking up it stretches its arms , and cries with force as though it feels pain.. My in laws consulted one near by sheik and he gave one small white tablet. Is it ok to give or is it ok to leave it like that ??