As per Prophet Muhammad (PBUH) whenever a person makes a due to Allah SWT, Allah accepts his supplication or turns away some kind of trouble coming in his way.
Allah has given his creatures the gift of asking for duas and ibadahs. Duas can be asked unconditionally and with sincerity and purity directly to Allah.