Which preposition to use with goodnight

to Occurrences 4%

Presently, the evening drawing near, the bo'sun set us to the building of fires about the hill-top, and after that, having waved our goodnights to the people in the hulk, we made our suppers, and lay down to smoke, after which, we turned-to again at our plaiting of the sennit, the which we were in very great haste to have done.

in Occurrences 1%

Would he reach the door, pass in and be gone the next morning without another word to her except a formal goodnight in front of the others?

of Occurrences 1%

The gleam of uniforms in a drab world, the upright bearing, the rattle of a kettledrum, the boom of a salute, the murmur of the "Dead March," the goodnight of the "Last Post" sounding over the home-faring traffic and the quiet cradlesone does not know by what substitutes eternal peace could exactly replace them.

Which preposition to use with  goodnight