This quote is saying that offering prayer to God is the same thing as being friends with God. It suggests that the relationship between God and the person praying is not a one-way street, but that both are friends. Prayer is a way to communicate with God and to receive guidance. When someone prays, they are connecting with God on a deep, personal level and forging a true friendship.