This parable appears in the Gospel of Luke immediately after Jesus teaches the Lord 's Prayer , and can therefore be viewed as a continuation of Jesus teaching his disciples how to pray , while the verses which follow help to explain the meaning of the parable : Joel B. Green suggests that the question that opens the parable ( `` Which of you who has a friend ... ? ''
Jesus told this parable after he taught his disciples how to pray the Lord 's Prayer .