Your question certainly has a different answer according to the religion adopted.
according to the religion of Islam, the way a person finds god (ALLAH) is by carrying out all of his commands and away from all prohibitions, and the easiest is by performing fardhu prayers a day and night five times.