Josh Allen found a tight end in the back of the end zone after stepping back, scrambling and finding him.
After falling to the ground, he rolled around and flung the ball in the air. The tight end put up his hands and said, "Love ya, boy."
Hamlin, who was watching the game from the University of Cincinnati Medical Center, replied to his followers with a heart symbol.
The Bills jumped out to a 14-7 lead over New England in the second quarter and held on for a 35-23 victory. The Dolphins will play the Bills in the wild-card round.
The game was all about Hamlin, with signs showing his likeness on the video board throughout the day and players honoring him in a variety of ways.
The Bills got on the board on the first play of the game with a kick return for a touchdown.
The Bills honored the people who saved Hamlin's life by naming their medical personnel and training staff after them. The players ran onto the field with flags that said "3" and "Pray for Damar" There was a circle at the center.