This is very wrong and it is the doing of soothsayers.

Is it a right way ? Some people decide things in inky pinky manner. For example, If some theft happen in their home, and they suspect a person and want to know whether he is the thief or not. They make dua to Allah, saying i will invite this person to come to my home now. On the spot, if person says “yes” then he is not theif, if “no” then he is thief.