Dua must be devoid of sin: If one asked Allah, “O Allah, make me a Prophet”, then this not permitted and is transgressing beyond bounds and is not accepted by Allah. If a person was to supplicate against the one he has oppressed, it will not be accepted.