You need 2 apostrophes, one after friends and another one after neighbours.
I put my friends' ball in my neighbours' garage. This means you are talking about various friends who share a ball and also various neighbors who share a garage.
If you are talking about just one friend and one neighbour, you need to place your apostrophes differently:
I put my friend's ball in my neighbour'sgarage.
Chat with our AI personalities