The secure copy command is: scp where_the_file_is where_the_file_should_be
Or more correctly: scp source destination
The trick with a raspberry pi, or any remote location in fact is to include the username@host/ip with a colon as the first part of the source address.
eg scp pi@192.168.x.x:/home/pi/text.txt ~/